aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/query.txx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/mysql/query.txx b/odb/mysql/query.txx
index 5063082..deafad0 100644
--- a/odb/mysql/query.txx
+++ b/odb/mysql/query.txx
@@ -15,7 +15,11 @@ namespace odb
query (const query_column<bool, ID>& c)
: clause_ (c.name ())
{
- clause_ += " IS TRUE";
+ // Cannot use IS TRUE here since database type can be a non-
+ // integral type.
+ //
+ clause_ += " = ";
+ append<bool, ID> (val_bind<bool> (true));
}
// query_column