Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f80f1cc2
Commit
f80f1cc2
authored
Feb 19, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Accept '\5' and '-' in SQL identifiers.
parent
f4bcb105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
db.c
dlls/msi/tests/db.c
+24
-0
tokenize.c
dlls/msi/tokenize.c
+2
-2
No files found.
dlls/msi/tests/db.c
View file @
f80f1cc2
...
...
@@ -683,6 +683,30 @@ static void test_msibadqueries(void)
r
=
try_query
(
hdb
,
"select * from 'c'"
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"query failed
\n
"
);
r
=
try_query
(
hdb
,
"CREATE TABLE `
\5
a` (`b` CHAR NOT NULL PRIMARY KEY `b`)"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"SELECT * FROM
\5
a"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"CREATE TABLE `a
\5
` (`b` CHAR NOT NULL PRIMARY KEY `b`)"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"SELECT * FROM a
\5
"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"CREATE TABLE `-a` (`b` CHAR NOT NULL PRIMARY KEY `b`)"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"SELECT * FROM -a"
);
todo_wine
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"CREATE TABLE `a-` (`b` CHAR NOT NULL PRIMARY KEY `b`)"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
try_query
(
hdb
,
"SELECT * FROM a-"
);
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %u
\n
"
,
r
);
r
=
MsiCloseHandle
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to close database transact
\n
"
);
...
...
dlls/msi/tokenize.c
View file @
f80f1cc2
...
...
@@ -166,9 +166,9 @@ static int sqliteKeywordCode(const WCHAR *z, int n){
*/
static
const
char
isIdChar
[]
=
{
/* x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 0x */
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 0x */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1x */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 2x */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
/* 2x */
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 3x */
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
/* 4x */
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
/* 5x */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment