diff options
-rw-r--r-- | common/transaction/driver.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/transaction/driver.cxx b/common/transaction/driver.cxx index d868782..00aff29 100644 --- a/common/transaction/driver.cxx +++ b/common/transaction/driver.cxx @@ -13,6 +13,7 @@ #include <odb/tracer.hxx> #include <odb/database.hxx> #include <odb/transaction.hxx> +#include <odb/statement.hxx> #include <odb/exceptions.hxx> #include <common/common.hxx> @@ -35,6 +36,14 @@ struct transaction_tracer: odb::tracer else if (str == "ROLLBACK") cout << "rollback transaction" << endl; } + + // Override the other version to get rid of a Sun CC warning. + // + virtual void + execute (connection& c, const statement& s) + { + execute (c, s.text ()); + } }; int |