Commit cb9cb83c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msi: Add table existance tests for tables with temporary columns.

parent eb5a803b
......@@ -3957,10 +3957,22 @@ static void test_alter(void)
hdb = create_db();
ok( hdb, "failed to create db\n");
query = "CREATE TABLE `T` ( `B` SHORT NOT NULL TEMPORARY, `C` CHAR(255) TEMPORARY PRIMARY KEY `C`)";
r = run_query(hdb, 0, query);
ok(r == ERROR_SUCCESS, "failed to add table\n");
query = "SELECT * FROM `T`";
r = run_query(hdb, 0, query);
ok(r == ERROR_BAD_QUERY_SYNTAX, "expected ERROR_BAD_QUERY_SYNTAX, got %d\n", r);
query = "CREATE TABLE `T` ( `B` SHORT NOT NULL TEMPORARY, `C` CHAR(255) TEMPORARY PRIMARY KEY `C`) HOLD";
r = run_query(hdb, 0, query);
ok(r == ERROR_SUCCESS, "failed to add table\n");
query = "SELECT * FROM `T`";
r = run_query(hdb, 0, query);
ok(r == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", r);
cond = MsiDatabaseIsTablePersistentA(hdb, "T");
ok( cond == MSICONDITION_FALSE, "wrong return condition\n");
......
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