Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
57443e01
Commit
57443e01
authored
Oct 31, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the ALTER and FREE keywords in the tokenizer.
parent
ddf0b593
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
db.c
dlls/msi/tests/db.c
+2
-2
tokenize.c
dlls/msi/tokenize.c
+3
-2
No files found.
dlls/msi/tests/db.c
View file @
57443e01
...
...
@@ -2754,7 +2754,6 @@ static void test_alter(void)
cond
=
MsiDatabaseIsTablePersistent
(
hdb
,
"T"
);
ok
(
cond
==
MSICONDITION_FALSE
,
"wrong return condition
\n
"
);
todo_wine
{
query
=
"ALTER TABLE `T` HOLD"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to hold table %d
\n
"
,
r
);
...
...
@@ -2766,8 +2765,8 @@ static void test_alter(void)
query
=
"ALTER TABLE `T` FREE"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to free table
\n
"
);
}
todo_wine
{
query
=
"ALTER TABLE `T` FREE"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"failed to free table
\n
"
);
...
...
@@ -2775,6 +2774,7 @@ static void test_alter(void)
query
=
"ALTER TABLE `T` HOLD"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"failed to hold table %d
\n
"
,
r
);
}
MsiCloseHandle
(
hdb
);
...
...
dlls/msi/tokenize.c
View file @
57443e01
...
...
@@ -40,8 +40,8 @@ struct Keyword {
static
const
WCHAR
ABORT_W
[]
=
{
'A'
,
'B'
,
'O'
,
'R'
,
'T'
,
0
};
static
const
WCHAR
AFTER_W
[]
=
{
'A'
,
'F'
,
'T'
,
'E'
,
'R'
,
0
};
static
const
WCHAR
ALTER_W
[]
=
{
'A'
,
'L'
,
'T'
,
'E'
,
'R'
,
0
};
static
const
WCHAR
ALL_W
[]
=
{
'A'
,
'L'
,
'L'
,
0
};
static
const
WCHAR
ALTER_W
[]
=
{
'A'
,
'L'
,
'T'
,
'E'
,
'R'
,
0
};
static
const
WCHAR
AND_W
[]
=
{
'A'
,
'N'
,
'D'
,
0
};
static
const
WCHAR
AS_W
[]
=
{
'A'
,
'S'
,
0
};
static
const
WCHAR
ASC_W
[]
=
{
'A'
,
'S'
,
'C'
,
0
};
...
...
@@ -154,8 +154,8 @@ static const WCHAR WHERE_W[] = { 'W','H','E','R','E',0 };
static
const
Keyword
aKeywordTable
[]
=
{
{
ABORT_W
,
TK_ABORT
},
{
AFTER_W
,
TK_AFTER
},
{
ALTER_W
,
TK_ALTER
},
{
ALL_W
,
TK_ALL
},
{
ALTER_W
,
TK_ALTER
},
{
AND_W
,
TK_AND
},
{
AS_W
,
TK_AS
},
{
ASC_W
,
TK_ASC
},
...
...
@@ -192,6 +192,7 @@ static const Keyword aKeywordTable[] = {
{
FAIL_W
,
TK_FAIL
},
{
FOR_W
,
TK_FOR
},
{
FOREIGN_W
,
TK_FOREIGN
},
{
FREE_W
,
TK_FREE
},
{
FROM_W
,
TK_FROM
},
{
FULL_W
,
TK_JOIN_KW
},
{
GLOB_W
,
TK_GLOB
},
...
...
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