diff options
-rw-r--r-- | odb/tracer.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/tracer.cxx b/odb/tracer.cxx index aa33822..03cabec 100644 --- a/odb/tracer.cxx +++ b/odb/tracer.cxx @@ -45,6 +45,11 @@ namespace odb { virtual void execute (connection&, const char* statement); + + // Override the other version to get rid of a Sun CC warning. + // + virtual void + execute (connection&, const statement&); }; void stderr_tracer_type:: @@ -53,6 +58,12 @@ namespace odb cerr << s << endl; } + void stderr_tracer_type:: + execute (connection& c, const statement& s) + { + execute (c, s.text ()); + } + static stderr_tracer_type stderr_tracer_; tracer& stderr_tracer = stderr_tracer_; } |