msi: Fix joining a nonexistent table with another table.
This commit is contained in:
parent
c48daf93bb
commit
061085fa94
|
@ -341,7 +341,8 @@ UINT JOIN_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR tables )
|
|||
r = TABLE_CreateView( db, tables, &table->view );
|
||||
if( r != ERROR_SUCCESS )
|
||||
{
|
||||
ERR("can't create table\n");
|
||||
WARN("can't create table: %s\n", debugstr_w(tables));
|
||||
r = ERROR_BAD_QUERY_SYNTAX;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
|
|
@ -3213,6 +3213,11 @@ static void test_join(void)
|
|||
MsiViewClose(hview);
|
||||
MsiCloseHandle(hview);
|
||||
|
||||
query = "SELECT * FROM `Nonexistent`, `One`";
|
||||
r = MsiDatabaseOpenView(hdb, query, &hview);
|
||||
ok( r == ERROR_BAD_QUERY_SYNTAX,
|
||||
"Expected ERROR_BAD_QUERY_SYNTAX, got %d\n", r );
|
||||
|
||||
MsiCloseHandle(hdb);
|
||||
DeleteFile(msifile);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue