Commit 30b2c64c authored by Sergei Golubchik's avatar Sergei Golubchik

compiler warnings

parent 665a31af
...@@ -7837,16 +7837,22 @@ int make_schema_select(THD *thd, SELECT_LEX *sel, ...@@ -7837,16 +7837,22 @@ int make_schema_select(THD *thd, SELECT_LEX *sel,
We have to make non const db_name & table_name We have to make non const db_name & table_name
because of lower_case_table_names because of lower_case_table_names
*/ */
thd->make_lex_string(&db, INFORMATION_SCHEMA_NAME.str, if (!thd->make_lex_string(&db, INFORMATION_SCHEMA_NAME.str,
INFORMATION_SCHEMA_NAME.length); INFORMATION_SCHEMA_NAME.length))
thd->make_lex_string(&table, schema_table->table_name, DBUG_RETURN(1);
strlen(schema_table->table_name));
if (schema_table->old_format(thd, schema_table) || /* Handle old syntax */ if (!thd->make_lex_string(&table, schema_table->table_name,
!sel->add_table_to_list(thd, new Table_ident(thd, db, table, 0), strlen(schema_table->table_name)))
DBUG_RETURN(1);
if (schema_table->old_format(thd, schema_table))
DBUG_RETURN(1);
if (!sel->add_table_to_list(thd, new Table_ident(thd, db, table, 0),
0, 0, TL_READ, MDL_SHARED_READ)) 0, 0, TL_READ, MDL_SHARED_READ))
{
DBUG_RETURN(1); DBUG_RETURN(1);
}
DBUG_RETURN(0); DBUG_RETURN(0);
} }
......
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