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
61c1dd2b
Commit
61c1dd2b
authored
Sep 13, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test for ALTER TABLE.
parent
b4005c15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
db.c
dlls/msi/tests/db.c
+45
-0
No files found.
dlls/msi/tests/db.c
View file @
61c1dd2b
...
...
@@ -2281,6 +2281,50 @@ static void test_temporary_table(void)
DeleteFile
(
msifile
);
}
static
void
test_alter
(
void
)
{
MSICONDITION
cond
;
MSIHANDLE
hdb
=
0
;
const
char
*
query
;
UINT
r
;
hdb
=
create_db
();
ok
(
hdb
,
"failed to create db
\n
"
);
query
=
"CREATE TABLE `T` ( `B` SHORT NOT NULL TEMPORARY, `C` CHAR(255) TEMPORARY PRIMARY KEY `C`) HOLD"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add table
\n
"
);
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
);
query
=
"ALTER TABLE `T` FREE"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to free table
\n
"
);
query
=
"ALTER TABLE `T` FREE"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to free table
\n
"
);
}
query
=
"ALTER TABLE `T` FREE"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"failed to free table
\n
"
);
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
);
DeleteFile
(
msifile
);
}
START_TEST
(
db
)
{
test_msidatabase
();
...
...
@@ -2300,4 +2344,5 @@ START_TEST(db)
test_generate_transform
();
test_join
();
test_temporary_table
();
test_alter
();
}
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