From ec63060967e1c764e80655e8fd3bf40bd3872efd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Oct 2013 08:52:58 +0200 Subject: Don't use auto id for BLOB test This causes problems with SQL Server 2005. --- common/section/basics/driver.cxx | 2 +- common/section/basics/test.hxx | 6 +++--- 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) -- cgit v1.1