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
9e5d07bb
Commit
9e5d07bb
authored
Jun 07, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Jun 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test to insert a null primary key temporary row and check its order.
parent
2cc9a710
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
db.c
dlls/msi/tests/db.c
+37
-0
No files found.
dlls/msi/tests/db.c
View file @
9e5d07bb
...
...
@@ -7391,6 +7391,43 @@ static void test_insertorder(void)
MsiViewClose
(
view
);
MsiCloseHandle
(
view
);
query
=
"DELETE FROM `T` WHERE `A` IS NULL"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
query
=
"INSERT INTO `T` ( `B`, `C` ) VALUES ( 12, 13 ) TEMPORARY"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
query
=
"SELECT * FROM `T`"
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
view
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
r
=
MsiViewExecute
(
view
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
for
(
i
=
0
;
i
<
6
;
i
++
)
{
r
=
MsiViewFetch
(
view
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
r
=
MsiRecordGetInteger
(
rec
,
1
);
ok
(
r
==
ordervals
[
i
][
0
],
"Expected %d, got %d
\n
"
,
ordervals
[
i
][
0
],
r
);
r
=
MsiRecordGetInteger
(
rec
,
2
);
ok
(
r
==
ordervals
[
i
][
1
],
"Expected %d, got %d
\n
"
,
ordervals
[
i
][
1
],
r
);
r
=
MsiRecordGetInteger
(
rec
,
3
);
ok
(
r
==
ordervals
[
i
][
2
],
"Expected %d, got %d
\n
"
,
ordervals
[
i
][
2
],
r
);
MsiCloseHandle
(
rec
);
}
r
=
MsiViewFetch
(
view
,
&
rec
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
MsiViewClose
(
view
);
MsiCloseHandle
(
view
);
MsiCloseHandle
(
hdb
);
DeleteFileA
(
msifile
);
}
...
...
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