Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
4b7b2f9a
Commit
4b7b2f9a
authored
Jan 22, 2013
by
Mukund Sivaraman
Browse files
[master] Use consistent case in SQLite3 naming
parent
9bb9dbe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/sqlite3_accessor_link.cc
View file @
4b7b2f9a
...
...
@@ -47,12 +47,12 @@ checkConfig(ConstElementPtr config, ElementPtr errors) {
bool
result
=
true
;
if
(
!
config
||
config
->
getType
()
!=
Element
::
map
)
{
addError
(
errors
,
"Base config for SQ
l
ite3 backend must be a map"
);
addError
(
errors
,
"Base config for SQ
L
ite3 backend must be a map"
);
result
=
false
;
}
else
{
if
(
!
config
->
contains
(
CONFIG_ITEM_DATABASE_FILE
))
{
addError
(
errors
,
"Config for SQ
l
ite3 backend does not contain a '"
+
"Config for SQ
L
ite3 backend does not contain a '"
+
string
(
CONFIG_ITEM_DATABASE_FILE
)
+
"' value"
);
result
=
false
;
...
...
@@ -89,11 +89,11 @@ createInstance(isc::data::ConstElementPtr config, std::string& error) {
new
SQLite3Accessor
(
dbfile
,
"IN"
));
// XXX: avoid hardcode RR class
return
(
new
DatabaseClient
(
isc
::
dns
::
RRClass
::
IN
(),
sqlite3_accessor
));
}
catch
(
const
std
::
exception
&
exc
)
{
error
=
std
::
string
(
"Error creating
sql
ite3 datasource: "
)
+
error
=
std
::
string
(
"Error creating
SQL
ite3 datasource: "
)
+
exc
.
what
();
return
(
NULL
);
}
catch
(...)
{
error
=
std
::
string
(
"Error creating
sql
ite3 datasource, "
error
=
std
::
string
(
"Error creating
SQL
ite3 datasource, "
"unknown exception"
);
return
(
NULL
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment