diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-28 20:14:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-28 20:14:08 +0200 |
commit | 8ce82c7b864d7299008dd413417a5823a7d747f5 (patch) | |
tree | f9612574c908d98585646f7245f8a078f15f856b /mapping | |
parent | e4add374a96fdcb16fe9a8edc69f8a7418884e82 (diff) |
Rename begin_transaction() to begin()
Diffstat (limited to 'mapping')
-rw-r--r-- | mapping/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mapping/driver.cxx b/mapping/driver.cxx index fd878dc..dae2c94 100644 --- a/mapping/driver.cxx +++ b/mapping/driver.cxx @@ -28,7 +28,7 @@ main (int argc, char* argv[]) person jane ("Jane", "Doe", date (1975, 11, 23), false); person joe ("Joe", "Dirt", date (1973, 12, 28), true); - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (john); db->persist (jane); @@ -41,7 +41,7 @@ main (int argc, char* argv[]) typedef odb::query<person> query; typedef odb::result<person> result; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); result r (db->query<person> (query::married && query::born == date (1978, 10, 13))); |