diff options
author | unknown <monty@mashka.mysql.fi> | 2003-01-29 19:22:22 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-01-29 19:22:22 +0200 |
commit | 93ebd4d64d4748bd55834ac76b0b796d075f68b4 (patch) | |
tree | c75b9bfc08d3d793d015a4b05b46c723ec15ce0e /sql/table.cc | |
parent | 9c89ce7b3acc40fa9cd739b041611d79d43f55da (diff) | |
parent | 3a180c331aa30b393d8cbeff51793ed61592bd75 (diff) | |
download | mariadb-git-93ebd4d64d4748bd55834ac76b0b796d075f68b4.tar.gz |
merge with 3.23.56 to get patches for --lower-case-table-names and
proper handling of SUM() in some functions.
BitKeeper/etc/logging_ok:
auto-union
sql/item_cmpfunc.cc:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/sql_db.cc:
Auto merged
sql/sql_show.cc:
Auto merged
sql/table.cc:
Auto merged
mysql-test/r/group_by.result:
merge with 3.23.56
mysql-test/t/group_by.test:
merge with 3.23.56
sql/item_strfunc.h:
merge with 3.23.56
sql/mysqld.cc:
merge with 3.23.56
sql/sql_parse.cc:
merge with 3.23.56
sql/sql_yacc.yy:
merge with 3.23.56
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc index 7e284c89871..9eaea728007 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1100,9 +1100,29 @@ char *get_field(MEM_ROOT *mem, TABLE *table, uint fieldnr) return to; } -bool check_db_name(const char *name) + +/* + Check if database name is valid + + SYNPOSIS + check_db_name() + name Name of database + + NOTES + If lower_case_table_names is set then database is converted to lower case + + RETURN + 0 ok + 1 error +*/ + +bool check_db_name(char *name) { - const char *start=name; + char *start=name; + + if (lower_case_table_names) + casedn_str(name); + while (*name) { #if defined(USE_MB) && defined(USE_MB_IDENT) |