diff options
Diffstat (limited to 'qt/mssql/basic')
-rw-r--r-- | qt/mssql/basic/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/mssql/basic/driver.cxx b/qt/mssql/basic/driver.cxx index 9fac8de..df12334 100644 --- a/qt/mssql/basic/driver.cxx +++ b/qt/mssql/basic/driver.cxx @@ -52,10 +52,10 @@ main (int argc, char* argv[]) // { transaction t (db->begin ()); - object* ol = db->load<object> (o.id_); + auto_ptr<object> p (db->load<object> (o.id_)); t.commit (); - assert (*ol == o); + assert (*p == o); } } catch (const odb::exception& e) |