aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/statement/processing/driver.cxx17
-rw-r--r--common/view/test.hxx2
2 files changed, 17 insertions, 2 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.
//
{
diff --git a/common/view/test.hxx b/common/view/test.hxx
index f9bc8e8..e543466 100644
--- a/common/view/test.hxx
+++ b/common/view/test.hxx
@@ -394,7 +394,7 @@ struct view6b
#ifndef ODB_DATABASE_ORACLE
# pragma db view table("t_view_person" = "p") \
table("t_view_employer_employees" = "ee": "ee.value = p.id") \
- table("t_view_employer" = "e": "ee.object_id = e.name")
+ table("t_view_employer" = "e": "\"ee\".\"object_id\" = e.name")
#else
# pragma db view table("t_view_person" = "p") \
table("t_view_employer_employees" = "ee": "\"ee\".\"value\" = \"p\".\"id\"")\