From 08d1398d97a1bff3261861c120bbd8c530e68600 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 4 Dec 2006 16:52:18 +0900 Subject: [PATCH] msi: Double quotes are not valid in queries. --- dlls/msi/tests/db.c | 2 +- dlls/msi/tokenize.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index fd11e40af8..83bc811082 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -672,7 +672,7 @@ static void test_msibadqueries(void) ok(r == ERROR_BAD_QUERY_SYNTAX, "query failed\n"); r = try_query( hdb, "select * from c where b = \"x\""); - todo_wine ok(r == ERROR_BAD_QUERY_SYNTAX, "query failed\n"); + ok(r == ERROR_BAD_QUERY_SYNTAX, "query failed\n"); r = try_query( hdb, "select * from c where b = 'x'"); ok(r == ERROR_SUCCESS, "query failed\n"); diff --git a/dlls/msi/tokenize.c b/dlls/msi/tokenize.c index 1404c34b62..5a5172be2b 100644 --- a/dlls/msi/tokenize.c +++ b/dlls/msi/tokenize.c @@ -255,7 +255,7 @@ int sqliteGetToken(const WCHAR *z, int *tokenType){ case ',': *tokenType = TK_COMMA; return 1; - case '`': case '\'': case '"': { + case '`': case '\'': { int delim = z[0]; for(i=1; z[i]; i++){ if( z[i]==delim ){