aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-01-18 11:21:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-01-18 11:24:04 +0200
commit7658e3af617d3b515502e7cb195b9aff7af72b60 (patch)
tree102b05f486a98e3ed913b1b1efb5a4041596fb4d
parent992ad51cc50f4703945338ae7821e47bda35c6f1 (diff)
Add support for native SQL statement execution
New test: mysql/native. New manual section: 3.9, "Executing Native SQL Statements".
-rw-r--r--odb/tracer/database.cxx6
-rw-r--r--odb/tracer/database.hxx3
2 files changed, 9 insertions, 0 deletions
diff --git a/odb/tracer/database.cxx b/odb/tracer/database.cxx
index 0a77a20..1359a26 100644
--- a/odb/tracer/database.cxx
+++ b/odb/tracer/database.cxx
@@ -15,6 +15,12 @@ namespace odb
{
}
+ unsigned long long database::
+ execute (const char*, std::size_t)
+ {
+ return 0;
+ }
+
transaction_impl* database::
begin ()
{
diff --git a/odb/tracer/database.hxx b/odb/tracer/database.hxx
index 14d4b70..7210681 100644
--- a/odb/tracer/database.hxx
+++ b/odb/tracer/database.hxx
@@ -23,6 +23,9 @@ namespace odb
virtual
~database ();
+ virtual unsigned long long
+ execute (const char* statement, std::size_t length);
+
virtual transaction_impl*
begin ();
};