aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-06 13:43:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-12-06 13:43:21 +0200
commit7c517014fe1e1b0350b8a1580f6a016fb556c1a6 (patch)
treed5584fdf3fc10ebbf098c176d3f4a840f4fce585
parent5535c87bf437f6f6acae0e52b0fe6cd5204df5a7 (diff)
Override second version of tracer::execute() to suppress Sun CC warning1.7.0
-rw-r--r--common/transaction/driver.cxx9
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