From df1fdb4f500308adf2fff1a08b2ef62bf5a88de7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Jan 2012 10:46:55 +0200 Subject: Detect and throw when object/view with long data is re-loaded from query result --- odb/mssql/exceptions.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/mssql/exceptions.hxx') diff --git a/odb/mssql/exceptions.hxx b/odb/mssql/exceptions.hxx index 3e7a845..b31a83d 100644 --- a/odb/mssql/exceptions.hxx +++ b/odb/mssql/exceptions.hxx @@ -108,6 +108,12 @@ namespace odb private: std::string what_; }; + + struct LIBODB_MSSQL_EXPORT long_data_reload: odb::exception + { + virtual const char* + what () const throw (); + }; } } -- cgit v1.1