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
d65e80c8
Commit
d65e80c8
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: Add a test showing a join doesn't need a WHERE clause.
parent
c6124db9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
db.c
dlls/msi/tests/db.c
+20
-0
No files found.
dlls/msi/tests/db.c
View file @
d65e80c8
...
...
@@ -2226,6 +2226,26 @@ static void test_join(void)
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
/* try a join without a WHERE condition */
query
=
"SELECT `Component`.`ComponentId`, `FeatureComponents`.`Feature_` "
"FROM `Component`, `FeatureComponents` "
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
hview
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to open view: %d
\n
"
,
r
);
r
=
MsiViewExecute
(
hview
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to execute view: %d
\n
"
,
r
);
i
=
0
;
while
((
r
=
MsiViewFetch
(
hview
,
&
hrec
))
==
ERROR_SUCCESS
)
{
i
++
;
MsiCloseHandle
(
hrec
);
}
ok
(
i
==
24
,
"Expected 24 rows, got %d
\n
"
,
i
);
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
query
=
"SELECT DISTINCT Component, ComponentId FROM FeatureComponents, Component "
"WHERE FeatureComponents.Component_=Component.Component "
"AND (Feature_='nasalis') ORDER BY Feature_"
;
...
...
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