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
1582f580
Commit
1582f580
authored
Oct 26, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the join algorithm.
parent
6c95dc64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
join.c
dlls/msi/join.c
+6
-3
db.c
dlls/msi/tests/db.c
+0
-9
No files found.
dlls/msi/join.c
View file @
1582f580
...
...
@@ -172,13 +172,16 @@ static UINT join_match( UINT *ldata, UINT lcount,
{
pairs
[
n
*
2
]
=
ldata
[
i
*
2
];
pairs
[
n
*
2
+
1
]
=
rdata
[
j
*
2
];
i
++
;
/* FIXME: assumes primary key on the right */
n
++
;
continue
;
if
(
ldata
[
i
*
2
+
3
]
<
rdata
[
j
*
2
+
3
])
i
++
;
else
j
++
;
}
/* values differ... move along */
if
(
ldata
[
i
*
2
+
1
]
<
rdata
[
j
*
2
+
1
])
else
if
(
ldata
[
i
*
2
+
1
]
<
rdata
[
j
*
2
+
1
])
i
++
;
else
j
++
;
...
...
dlls/msi/tests/db.c
View file @
1582f580
...
...
@@ -2206,29 +2206,20 @@ static void test_join(void)
size
=
MAX_PATH
;
r
=
MsiRecordGetString
(
hrec
,
1
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get record string: %d
\n
"
,
r
);
if
(
i
==
2
||
i
==
3
)
todo_wine
{
ok
(
!
lstrcmp
(
buf
,
join_res_first
[
i
].
one
),
"For (row %d, column 1) expected '%s', got %s
\n
"
,
i
,
join_res_first
[
i
].
one
,
buf
);
}
size
=
MAX_PATH
;
r
=
MsiRecordGetString
(
hrec
,
2
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get record string: %d
\n
"
,
r
);
if
(
i
==
3
)
todo_wine
{
ok
(
!
lstrcmp
(
buf
,
join_res_first
[
i
].
two
),
"For (row %d, column 2) expected '%s', got %s
\n
"
,
i
,
join_res_first
[
i
].
two
,
buf
);
}
i
++
;
MsiCloseHandle
(
hrec
);
}
todo_wine
{
ok
(
i
==
5
,
"Expected 5 rows, got %d
\n
"
,
i
);
}
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"expected no more items: %d
\n
"
,
r
);
...
...
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