aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-12 09:28:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-20 15:45:46 +0200
commit043d8fabcf15918e22efdbde41af4880b23c0104 (patch)
tree3d1aed8a2c8dd30d61417e5029390ba0865ad88b /libcommon/common
parent3cc019d0df41400f9cf921040adab0ae198b570a (diff)
Query support for SQL Server
Diffstat (limited to 'libcommon/common')
-rw-r--r--libcommon/common/common.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcommon/common/common.hxx b/libcommon/common/common.hxx
index ead8888..2cf2357 100644
--- a/libcommon/common/common.hxx
+++ b/libcommon/common/common.hxx
@@ -35,7 +35,9 @@ std::size_t
size (odb::result<T>& r)
{
std::size_t n (0);
-#if defined(DATABASE_SQLITE) || defined(DATABASE_ORACLE)
+#if defined(DATABASE_SQLITE) || \
+ defined(DATABASE_ORACLE) || \
+ defined(DATABASE_MSSQL)
for (typename odb::result<T>::iterator i (r.begin ()); i != r.end (); ++i)
n++;
#else