aboutsummaryrefslogtreecommitdiff
path: root/common/statement/processing/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-03 12:49:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-17 12:04:02 +0200
commitd3689b6cd0b01ea4872cefbe99dbaef95febd64d (patch)
tree4451ff9338c967b5d430d2145216fca74149e210 /common/statement/processing/driver.cxx
parent179eb696191958bae891916eec2708c4d3e34983 (diff)
Handling of dynamic empty statements as result of versioning
Diffstat (limited to 'common/statement/processing/driver.cxx')
-rw-r--r--common/statement/processing/driver.cxx17
1 files changed, 16 insertions, 1 deletions
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.
//
{