summaryrefslogtreecommitdiff
path: root/libpqpp/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/command.cpp')
-rw-r--r--libpqpp/command.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpqpp/command.cpp b/libpqpp/command.cpp
index abd37e6..ba12574 100644
--- a/libpqpp/command.cpp
+++ b/libpqpp/command.cpp
@@ -81,6 +81,13 @@ PQ::Command::bindParamI(unsigned int n, long long unsigned int v)
formats[n] = 0;
}
void
+PQ::Command::bindParamB(unsigned int n, bool v)
+{
+ paramsAtLeast(n);
+ lengths[n] = asprintf(&values[n], "%s", v ? "true" : "false");
+ formats[n] = 0;
+}
+void
PQ::Command::bindParamF(unsigned int n, double v)
{
paramsAtLeast(n);