From d3689b6cd0b01ea4872cefbe99dbaef95febd64d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Sep 2013 12:49:15 +0200 Subject: Handling of dynamic empty statements as result of versioning --- common/statement/processing/driver.cxx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'common/statement/processing/driver.cxx') diff --git a/common/statement/processing/driver.cxx b/common/statement/processing/driver.cxx index 34def73..99a9be9 100644 --- a/common/statement/processing/driver.cxx +++ b/common/statement/processing/driver.cxx @@ -264,7 +264,7 @@ main (int, char* argv[]) "SET\n" "[a]=$1\n" "WHERE [id]=$2", - "UPDATE [foo] WHERE [id]=$2", + "", b, 2)); } @@ -385,6 +385,21 @@ main (int, char* argv[]) // SELECT // + // Empty. + // + { + void* b[] = {0, 0, 0}; + assert (select ("SELECT\n" + "[a].[x],\n" + "[t].[y],\n" + "[t].[z]\n" + "FROM [t]\n" + "LEFT JOIN [t1] AS [a] ON [a].[id]=[t].[id]\n" + "WHERE [t].[id]=$1", + "", + b, 3)); + } + // Fast path. // { -- cgit v1.1