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
OpenDAS
dlib
Commits
2e1927cd
Commit
2e1927cd
authored
Oct 20, 2011
by
Davis King
Browse files
Fixed a bug in the statement::get_column_as_text() routine. It didn't
work right if the column contained a NULL.
parent
ecfddbad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/sqlite/sqlite.h
dlib/sqlite/sqlite.h
+4
-1
No files found.
dlib/sqlite/sqlite.h
View file @
2e1927cd
...
...
@@ -268,7 +268,10 @@ namespace dlib
);
const
char
*
data
=
reinterpret_cast
<
const
char
*>
(
sqlite3_column_text
(
stmt
,
idx
));
if
(
data
!=
0
)
return
std
::
string
(
data
);
else
return
std
::
string
();
}
double
get_column_as_double
(
...
...
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