aboutsummaryrefslogtreecommitdiff
path: root/common/statement/processing
diff options
context:
space:
mode:
Diffstat (limited to 'common/statement/processing')
-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.
//
{