From 0a71eaad620be004e7e28e7d3265a373dcd92395 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Nov 2011 15:00:06 +0200 Subject: Add support for SQL statement tracing --- odb/sqlite/connection.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/sqlite/connection.cxx') diff --git a/odb/sqlite/connection.cxx b/odb/sqlite/connection.cxx index 7b16547..f9753be 100644 --- a/odb/sqlite/connection.cxx +++ b/odb/sqlite/connection.cxx @@ -80,7 +80,7 @@ namespace odb { // Enable/disable foreign key constraints. // - simple_statement st ( + generic_statement st ( *this, db_.foreign_keys () ? "PRAGMA foreign_keys=ON" @@ -122,7 +122,7 @@ namespace odb unsigned long long connection:: execute (const char* s, std::size_t n) { - simple_statement st (*this, s, n); + generic_statement st (*this, s, n); return st.execute (); } -- cgit v1.1