msi: Add some tests for the ALTER query.

This commit is contained in:
Mike McCormack 2006-12-06 15:00:02 +09:00 committed by Alexandre Julliard
parent 32a8b2fa59
commit 3578bf64d6
1 changed files with 12 additions and 0 deletions

View File

@ -1374,6 +1374,18 @@ static void test_properties_table(void)
r = run_query(hdb, query); r = run_query(hdb, query);
ok(r == ERROR_SUCCESS, "failed to create table\n"); ok(r == ERROR_SUCCESS, "failed to create table\n");
query = "ALTER `_Properties` ADD `foo` INTEGER";
r = run_query(hdb, query);
ok(r == ERROR_BAD_QUERY_SYNTAX, "failed to add column\n");
query = "ALTER TABLE `_Properties` ADD `foo` INTEGER";
r = run_query(hdb, query);
ok(r == ERROR_BAD_QUERY_SYNTAX, "failed to add column\n");
query = "ALTER TABLE `_Properties` ADD `extra` INTEGER";
r = run_query(hdb, query);
todo_wine ok(r == ERROR_SUCCESS, "failed to add column\n");
hpkg = package_from_db(hdb); hpkg = package_from_db(hdb);
ok( hpkg, "failed to create package\n"); ok( hpkg, "failed to create package\n");