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
0fc2bd76
Commit
0fc2bd76
authored
Sep 08, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add more tests for temporary columns.
parent
77d3c598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
1 deletion
+39
-1
db.c
dlls/msi/tests/db.c
+39
-1
No files found.
dlls/msi/tests/db.c
View file @
0fc2bd76
...
...
@@ -1917,9 +1917,11 @@ static void test_join(void)
static
void
test_temporary_table
(
void
)
{
MSICONDITION
cond
;
MSIHANDLE
hdb
;
MSIHANDLE
hdb
=
0
,
view
=
0
,
rec
;
const
char
*
query
;
UINT
r
;
char
buf
[
0x10
];
DWORD
sz
;
cond
=
MsiDatabaseIsTablePersistent
(
0
,
NULL
);
todo_wine
ok
(
cond
==
MSICONDITION_ERROR
,
"wrong return condition
\n
"
);
...
...
@@ -1992,6 +1994,42 @@ static void test_temporary_table(void)
query
=
"CREATE TABLE `T5` ( `B` SHORT NOT NULL TEMP, `C` CHAR(255) TEMP PRIMARY KEY `C`) HOLD"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"failed to add table
\n
"
);
query
=
"select * from `T`"
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
view
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to query table
\n
"
);
r
=
MsiViewGetColumnInfo
(
view
,
MSICOLINFO_TYPES
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get column info
\n
"
);
sz
=
sizeof
buf
;
r
=
MsiRecordGetString
(
rec
,
1
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get string
\n
"
);
todo_wine
ok
(
0
==
strcmp
(
"G255"
,
buf
),
"wrong column type
\n
"
);
sz
=
sizeof
buf
;
r
=
MsiRecordGetString
(
rec
,
2
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get string
\n
"
);
todo_wine
ok
(
0
==
strcmp
(
"j2"
,
buf
),
"wrong column type
\n
"
);
MsiCloseHandle
(
rec
);
MsiCloseHandle
(
view
);
/* query the table data */
rec
=
0
;
r
=
do_query
(
hdb
,
"select * from `_Tables` where `Name` = 'T'"
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"temporary table exists in _Tables
\n
"
);
MsiCloseHandle
(
rec
);
todo_wine
{
/* query the column data */
rec
=
0
;
r
=
do_query
(
hdb
,
"select * from `_Columns` where `Table` = 'T' AND `Name` = 'B'"
,
&
rec
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"temporary table exists in _Columns
\n
"
);
r
=
do_query
(
hdb
,
"select * from `_Columns` where `Table` = 'T' AND `Name` = 'C'"
,
&
rec
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"temporary table exists in _Columns
\n
"
);
}
MsiCloseHandle
(
hdb
);
DeleteFile
(
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