aboutsummaryrefslogtreecommitdiff
path: root/bulk
diff options
context:
space:
mode:
Diffstat (limited to 'bulk')
-rw-r--r--bulk/driver.cxx17
-rw-r--r--bulk/mssql/auto/person-odb.hxx2
2 files changed, 18 insertions, 1 deletions
diff --git a/bulk/driver.cxx b/bulk/driver.cxx
index 8632905..b0b259a 100644
--- a/bulk/driver.cxx
+++ b/bulk/driver.cxx
@@ -98,6 +98,23 @@ main (int argc, char* argv[])
t.commit ();
}
+
+ {
+ transaction t (db->begin ());
+
+ unsigned long ids[] = {
+ pp[0]->id,
+ pp[1]->id,
+ pp[2]->id,
+ pp[3]->id,
+ pp[4]->id,
+ 123
+ };
+
+ db->erase<person> (ids, ids + sizeof (ids)/sizeof (ids[0]));
+
+ t.commit ();
+ }
}
catch (const odb::exception& e)
{
diff --git a/bulk/mssql/auto/person-odb.hxx b/bulk/mssql/auto/person-odb.hxx
index f73d829..7c1651f 100644
--- a/bulk/mssql/auto/person-odb.hxx
+++ b/bulk/mssql/auto/person-odb.hxx
@@ -7,7 +7,7 @@
#include <odb/version.hxx>
-#if (ODB_VERSION != 20302UL)
+#if (ODB_VERSION != 20303UL)
#error ODB runtime version mismatch
#endif