aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/statement.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:02 +0200
commit8bff3a2fc0ccce05abef7972beefadcd2534bdcd (patch)
treebe6b6940abd472b3640f15e22c6f7d51ceee978e /odb/sqlite/statement.cxx
parent59cab2f5fd95ed8ae833397044f2b704c3e7a8c4 (diff)
Implement support for optimistic concurrency
New pragmas: optimistic, version. New test: optimistic. New database function: reload().
Diffstat (limited to 'odb/sqlite/statement.cxx')
-rw-r--r--odb/sqlite/statement.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/sqlite/statement.cxx b/odb/sqlite/statement.cxx
index a7ace7a..a33ebcb 100644
--- a/odb/sqlite/statement.cxx
+++ b/odb/sqlite/statement.cxx
@@ -389,7 +389,7 @@ namespace odb
{
}
- void update_statement::
+ unsigned long long update_statement::
execute ()
{
bind_param (param_.bind, param_.count);
@@ -410,8 +410,8 @@ namespace odb
if (e != SQLITE_DONE)
translate_error (e, conn_);
- if (sqlite3_changes (conn_.handle ()) == 0)
- throw object_not_persistent ();
+ return static_cast<unsigned long long> (
+ sqlite3_changes (conn_.handle ()));
}
// delete_statement