summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-column.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-10-13 14:13:40 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-10-13 14:13:40 +0100
commit8193b47ceb4c1d2044b6a09f08d795b711704726 (patch)
tree7014da47d9bd9b01153da95b8015f9aa5ef0bf90 /libmysqlpp/my-column.cpp
parentModernize build (diff)
downloadlibdbpp-mysql-8193b47ceb4c1d2044b6a09f08d795b711704726.tar.bz2
libdbpp-mysql-8193b47ceb4c1d2044b6a09f08d795b711704726.tar.xz
libdbpp-mysql-8193b47ceb4c1d2044b6a09f08d795b711704726.zip
Fix literal booleans
Diffstat (limited to 'libmysqlpp/my-column.cpp')
-rw-r--r--libmysqlpp/my-column.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-column.cpp b/libmysqlpp/my-column.cpp
index 403933c..60c8c10 100644
--- a/libmysqlpp/my-column.cpp
+++ b/libmysqlpp/my-column.cpp
@@ -24,7 +24,7 @@ MySQL::StringColumn::StringColumn(const char * name, unsigned int field, MYSQL_B
{
b->is_null = &is_null;
b->buffer_type = MYSQL_TYPE_STRING;
- b->is_unsigned = 0;
+ b->is_unsigned = false;
b->buffer = value.data();
b->buffer_length = len;
b->length = &length;
@@ -62,7 +62,7 @@ namespace MySQL {
{
b->is_null = &is_null;
b->buffer_type = MT;
- b->is_unsigned = 0;
+ b->is_unsigned = false;
b->buffer = &value;
b->buffer_length = sizeof(T);
}