Skip to content
Permalink
Browse files

Fix of the testcase n the catalog2

to care about the change of one privilege names in 10.3.15
  • Loading branch information...
lawrinn committed May 13, 2019
1 parent 0314e02 commit 679e84cd47b7773884b64f49aed2f3385219d595
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/catalog2.c
@@ -269,7 +269,7 @@ ODBC_TEST(t_bug50195)
{
SQLHDBC hdbc1;
SQLHSTMT hstmt1;
const char expected_privs[][24]={ "ALTER", "CREATE", "CREATE VIEW", "DELETE", "DROP", "INDEX",
char expected_privs[][24]={ "ALTER", "CREATE", "CREATE VIEW", "DELETE", "DROP", "INDEX",
"INSERT", "REFERENCES", "SHOW VIEW", "TRIGGER", "UPDATE" },
expected_103[][24]={ "ALTER", "CREATE", "CREATE VIEW", "DELETE", "DELETE VERSIONING ROWS",
"DROP", "INDEX", "INSERT", "REFERENCES", "SHOW VIEW", "TRIGGER", "UPDATE" },
@@ -282,6 +282,11 @@ ODBC_TEST(t_bug50195)
{
expected= expected_103[0];
privs_count= sizeof(expected_103)/sizeof(expected_103[0]);

if (ServerNotOlderThan(Connection, 10, 3, 15))
{
strcpy(expected_103[4], "DELETE HISTORY");
}
}
OK_SIMPLE_STMT(Stmt, "DROP TABLE IF EXISTS bug50195");
OK_SIMPLE_STMT(Stmt, "CREATE TABLE bug50195 (i INT NOT NULL)");

0 comments on commit 679e84c

Please sign in to comment.
You can’t perform that action at this time.