1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Revert change of lower-case-table handling as this breaks how alias works.

Changes like this should be done to 4.1, not to a stable release
This commit is contained in:
monty@narttu.mysql.fi
2003-08-29 04:17:30 +03:00
parent 7d653b2c7c
commit 27e331c30a
7 changed files with 24 additions and 37 deletions

View File

@ -762,8 +762,15 @@ class Table_ident :public Sql_alloc {
public:
LEX_STRING db;
LEX_STRING table;
Table_ident(LEX_STRING db_arg,LEX_STRING table_arg,bool force);
Table_ident(LEX_STRING table_arg);
inline Table_ident(LEX_STRING db_arg,LEX_STRING table_arg,bool force)
:table(table_arg)
{
if (!force && (current_thd->client_capabilities & CLIENT_NO_SCHEMA))
db.str=0;
else
db= db_arg;
}
inline Table_ident(LEX_STRING table_arg) :table(table_arg) {db.str=0;}
inline void change_db(char *db_name)
{ db.str= db_name; db.length=(uint) strlen(db_name); }
};