aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/common.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libcommon/common/common.hxx')
-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