Commit dfa1b129 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Match the changes made by the hand-generated and API-generated transforms.

parent 3ea31cb2
...@@ -1872,7 +1872,7 @@ static const WCHAR data5[] = { /* _StringPool */ ...@@ -1872,7 +1872,7 @@ static const WCHAR data5[] = { /* _StringPool */
/* update row, 0x0002 is a bitmask of present column data, keys are excluded */ /* update row, 0x0002 is a bitmask of present column data, keys are excluded */
static const WCHAR data6[] = { /* MOO */ static const WCHAR data6[] = { /* MOO */
0x0002, 0x8001, 0x0001, /* update row */ 0x0002, 0x8001, 0x0001, /* update row */
0x0000, 0x8002, /* delete row */ 0x0000, 0x8003, /* delete row */
}; };
static const WCHAR data7[] = { /* BINARY */ static const WCHAR data7[] = { /* BINARY */
...@@ -2037,14 +2037,14 @@ static void test_try_transform(void) ...@@ -2037,14 +2037,14 @@ static void test_try_transform(void)
/* check unchanged value */ /* check unchanged value */
hrec = 0; hrec = 0;
query = "select `NOO`,`OOO` from `MOO` where `NOO` = 3 AND `OOO` = 'c'"; query = "select `NOO`,`OOO` from `MOO` where `NOO` = 2 AND `OOO` = 'b'";
r = do_query(hdb, query, &hrec); r = do_query(hdb, query, &hrec);
ok(r == ERROR_SUCCESS, "select query failed\n"); ok(r == ERROR_SUCCESS, "select query failed\n");
MsiCloseHandle(hrec); MsiCloseHandle(hrec);
/* check deleted value */ /* check deleted value */
hrec = 0; hrec = 0;
query = "select * from `MOO` where `NOO` = 2"; query = "select * from `MOO` where `NOO` = 3";
r = do_query(hdb, query, &hrec); r = do_query(hdb, query, &hrec);
ok(r == ERROR_NO_MORE_ITEMS, "select query failed\n"); ok(r == ERROR_NO_MORE_ITEMS, "select query failed\n");
if (hrec) MsiCloseHandle(hrec); if (hrec) MsiCloseHandle(hrec);
...@@ -2089,12 +2089,12 @@ static void test_try_transform(void) ...@@ -2089,12 +2089,12 @@ static void test_try_transform(void)
ok(r == ERROR_SUCCESS, "view fetch failed\n"); ok(r == ERROR_SUCCESS, "view fetch failed\n");
r = MsiRecordGetInteger(hrec, 1); r = MsiRecordGetInteger(hrec, 1);
ok(r == 3, "Expected 3, got %d\n", r); ok(r == 2, "Expected 2, got %d\n", r);
sz = sizeof buffer; sz = sizeof buffer;
r = MsiRecordGetString(hrec, 2, buffer, &sz); r = MsiRecordGetString(hrec, 2, buffer, &sz);
ok(r == ERROR_SUCCESS, "record get string failed\n"); ok(r == ERROR_SUCCESS, "record get string failed\n");
ok(!lstrcmpA(buffer, "c"), "Expected b, got %s\n", buffer); ok(!lstrcmpA(buffer, "b"), "Expected b, got %s\n", buffer);
MsiCloseHandle(hrec); MsiCloseHandle(hrec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment