From 89de275db2b77d0abf9fa1ec066ef11e262c88af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Jan 2013 15:10:22 +0200 Subject: Add support for mapping char[N] to CHAR/VARCHAR database types Also improve query support for arrays (decaying). --- libcommon/common/common.hxx | 4 ++-- libcommon/common/common.txx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libcommon') diff --git a/libcommon/common/common.hxx b/libcommon/common/common.hxx index 2b79a5a..0d56d7c 100644 --- a/libcommon/common/common.hxx +++ b/libcommon/common/common.hxx @@ -38,11 +38,11 @@ create_specific_database (int& argc, } // This function returns an accurate result only if the result iterator -// hasn't been advanced. +// hasn't been advanced and after the call the result is no longer valid. // template std::size_t -size (odb::result&); +size (odb::result); #include diff --git a/libcommon/common/common.txx b/libcommon/common/common.txx index 66ccac9..5c40520 100644 --- a/libcommon/common/common.txx +++ b/libcommon/common/common.txx @@ -11,7 +11,7 @@ size_available (); template std::size_t -size (odb::result& r) +size (odb::result r) { if (size_available ()) return r.size (); -- cgit v1.1