diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-12 09:28:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:45:46 +0200 |
commit | 043d8fabcf15918e22efdbde41af4880b23c0104 (patch) | |
tree | 3d1aed8a2c8dd30d61417e5029390ba0865ad88b /libcommon | |
parent | 3cc019d0df41400f9cf921040adab0ae198b570a (diff) |
Query support for SQL Server
Diffstat (limited to 'libcommon')
-rw-r--r-- | libcommon/common/common.hxx | 4 |
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 |