Added support for MariaDB 10.1 embedded library

The code used in the query classifier was not compatible with 10.1 version
of MariaDB and needed to be fine tuned in order for it to work with all
supported versions of MariaDB.
This commit is contained in:
Markus Makela
2015-11-22 19:03:21 +02:00
parent 1b9920ef10
commit 23b2ce004b
4 changed files with 18 additions and 7 deletions

View File

@ -352,7 +352,7 @@ static bool create_parse_tree(
failp = TRUE;
goto return_here;
}
mysql_reset_thd_for_next_command(thd);
thd->reset_for_next_command();
/**
* Set some database to thd so that parsing won't fail because of
@ -804,7 +804,7 @@ static bool skygw_stmt_causes_implicit_commit(
switch (lex->sql_command) {
case SQLCOM_DROP_TABLE:
succp = !(lex->drop_temporary);
succp = !(lex->create_info.options & HA_LEX_CREATE_TMP_TABLE);
break;
case SQLCOM_ALTER_TABLE:
case SQLCOM_CREATE_TABLE: