From 386162fc49b1adb266bbabc735ab28f46b98fa45 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Jan 2012 14:18:37 +0200 Subject: Disable re-loading of object with long data for SQL Server --- common/query/driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/query') diff --git a/common/query/driver.cxx b/common/query/driver.cxx index 6dd7757..ee5a76c 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -421,8 +421,15 @@ main (int argc, char* argv[]) assert (i != r.end ()); ++i; assert (i != r.end ()); + auto_ptr joe (db->load (3)); + + // SQL Server does not support re-loading of an object with long data + // from a query result. + // +#ifndef DATABASE_MSSQL assert (i->last_name_ == "Doe"); // Actual load. +#endif person p; joe.reset (db->load (3)); // Overwrite object image again. -- cgit v1.1