aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-10-24 08:52:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-10-24 08:52:58 +0200
commitec63060967e1c764e80655e8fd3bf40bd3872efd (patch)
treed9625ad14a9cee34f24acc9587a344ce4cff91e5 /common
parente121dc6a5d73c53a3c1aebc9fa4ed187dd87aae5 (diff)
Don't use auto id for BLOB test
This causes problems with SQL Server 2005.
Diffstat (limited to 'common')
-rw-r--r--common/section/basics/driver.cxx2
-rw-r--r--common/section/basics/test.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/common/section/basics/driver.cxx b/common/section/basics/driver.cxx
index 67e09ef..f34ed90 100644
--- a/common/section/basics/driver.cxx
+++ b/common/section/basics/driver.cxx
@@ -1125,7 +1125,7 @@ main (int argc, char* argv[])
{
using namespace test14;
- object o (123, "\x01\x02\x03\x04\x05");
+ object o (1, 123, "\x01\x02\x03\x04\x05");
{
transaction t (db->begin ());
diff --git a/common/section/basics/test.hxx b/common/section/basics/test.hxx
index c129f3e..0ceb298 100644
--- a/common/section/basics/test.hxx
+++ b/common/section/basics/test.hxx
@@ -458,10 +458,10 @@ namespace test14
#pragma db object
struct object
{
- object (int n_ = 999, const std::string& s_ = "xxx")
- : sb (s_.begin (), s_.end ()), sn (n_), n (n_) {}
+ object (unsigned long id_ = 0, int n_ = 999, const std::string& s_ = "xxx")
+ : id (id_), sb (s_.begin (), s_.end ()), sn (n_), n (n_) {}
- #pragma db id auto
+ #pragma db id
unsigned long id;
#pragma db load(lazy)