summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-command.cpp')
-rw-r--r--libmysqlpp/my-command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-command.cpp b/libmysqlpp/my-command.cpp
index 380d1f9..e15a3c1 100644
--- a/libmysqlpp/my-command.cpp
+++ b/libmysqlpp/my-command.cpp
@@ -116,7 +116,7 @@ MySQL::Command::bindParamS(unsigned int n, const std::string_view & s)
binds[n].buffer = realloc(binds[n].buffer, s.length());
s.copy(static_cast<char*>(binds[n].buffer), s.length(), 0);
binds[n].buffer_length = s.length();
- binds[n].is_unsigned = 0;
+ binds[n].is_unsigned = false;
}
void
MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v)
@@ -132,7 +132,7 @@ MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v)
ts.minute = v.time_of_day().minutes();
ts.second = v.time_of_day().seconds();
ts.second_part = v.time_of_day().total_microseconds() % 1000000;
- ts.neg = 0;
+ ts.neg = false;
}
void
MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::time_duration & v)