diff options
Diffstat (limited to 'odb')
-rw-r--r-- | odb/relational/mssql/source.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/odb/relational/mssql/source.cxx b/odb/relational/mssql/source.cxx index e40a189..ffcfa3c 100644 --- a/odb/relational/mssql/source.cxx +++ b/odb/relational/mssql/source.cxx @@ -920,7 +920,7 @@ namespace relational sql_type::ROWVERSION) return r; - // Long data & SQL Server 2005 incompatibility is detected + // ROWVERSION & SQL Server 2005 incompatibility is detected // in persist_statement_extra. // r = "OUTPUT INSERTED." + @@ -1037,6 +1037,16 @@ namespace relational throw operation_failed (); } + // We also cannot support bulk INSERT. + // + if (c.count ("bulk-persist")) + { + error (c.location ()) << "in SQL Server 2005 bulk " << + "persist operation cannot be implemented for a " << + "persistent class containing long data" << endl; + throw operation_failed (); + } + r = "; SELECT " + convert_from ("SCOPE_IDENTITY()", *id); } |