aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/query.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-01-24 15:10:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-01-24 15:10:21 +0200
commit10a88bacf1ec2b8b0700a27ea022d503f295825d (patch)
tree14329e532f68dd06064ac1d2d932e8c07cbff0b8 /odb/pgsql/query.txx
parentb505d1a2c18084505b3a69f08e3465619f2de0dd (diff)
Add support for mapping char[N] to CHAR/VARCHAR database types
Also improve query support for arrays (decaying).
Diffstat (limited to 'odb/pgsql/query.txx')
-rw-r--r--odb/pgsql/query.txx10
1 files changed, 6 insertions, 4 deletions
diff --git a/odb/pgsql/query.txx b/odb/pgsql/query.txx
index 84fd8ca..66296e9 100644
--- a/odb/pgsql/query.txx
+++ b/odb/pgsql/query.txx
@@ -26,7 +26,7 @@ namespace odb
//
template <typename T, database_type_id ID>
query_base query_column<T, ID>::
- in (const T& v1, const T& v2) const
+ in (decayed_type v1, decayed_type v2) const
{
query_base q (table_, column_);
q += "IN (";
@@ -39,7 +39,7 @@ namespace odb
template <typename T, database_type_id ID>
query_base query_column<T, ID>::
- in (const T& v1, const T& v2, const T& v3) const
+ in (decayed_type v1, decayed_type v2, decayed_type v3) const
{
query_base q (table_, column_);
q += "IN (";
@@ -54,7 +54,8 @@ namespace odb
template <typename T, database_type_id ID>
query_base query_column<T, ID>::
- in (const T& v1, const T& v2, const T& v3, const T& v4) const
+ in (decayed_type v1, decayed_type v2, decayed_type v3,
+ decayed_type v4) const
{
query_base q (table_, column_);
q += "IN (";
@@ -71,7 +72,8 @@ namespace odb
template <typename T, database_type_id ID>
query_base query_column<T, ID>::
- in (const T& v1, const T& v2, const T& v3, const T& v4, const T& v5) const
+ in (decayed_type v1, decayed_type v2, decayed_type v3, decayed_type v4,
+ decayed_type v5) const
{
query_base q (table_, column_);
q += "IN (";