• unknown's avatar
    Changed several char* to LEX_STRING*. · e94087c5
    unknown authored
    
    BUILD/SETUP.sh:
      Added check for CCACHE_DISABLE. If set, do not
      use ccache at all.
    BUILD/compile-pentium-gcov:
      Moved CCACHE_DISABLE up before going into SETUP.sh.
      
      Added debug_extra_flags to extra_flags.
    mysql-test/r/create.result:
      Added tests for incorrect database names.
    mysql-test/r/ctype_create.result:
      Added tests for incorrect alter database names.
    mysql-test/r/events.result:
      Added tests for incorrect database names.
    mysql-test/r/grant.result:
      Output changed to capital letters.
    mysql-test/t/alter_table.test:
      Removed extra empty line
    mysql-test/t/create.test:
      Added tests for incorrect database names.
    mysql-test/t/ctype_create.test:
      Added tests for incorrect name handling
    mysql-test/t/events.test:
      Added tests for incorrect database names.
    sql/item_timefunc.cc:
      Added dummy case to avoid compiler warning.
    sql/mysql_priv.h:
      Changed argument from char pointer to LEX_STRING pointer.
    sql/mysqld.cc:
      Added a missing component from struct.
    sql/sql_class.h:
      Added function LEX_STRING_make that sets the string and length.
    sql/sql_db.cc:
      Changed several char pointers to lex_strings.
    sql/sql_lex.cc:
      name is now LEX_STRING
    sql/sql_lex.h:
      Changed name to LEX_STRING.
    sql/sql_parse.cc:
      Changed several char pointers to lex_strings.
      
      db_length needed a trick, because in old client protocol there
      was an extra char zero added to the string.
      
      check_db_name() now takes LEX_STRING pointer as an argument.
      
      Changed remove_escape() to take LEX_STRING pointer as an argument.
      
      Removed COM_CREATE_DB and COM_DROP_DB. These are obsolete.
    sql/sql_table.cc:
      char* -> LEX_STRING*
    sql/sql_yacc.yy:
      Changed char* -> LEX_STRING*
    sql/table.cc:
      check_db_name() now takes LEX_STRING* as argument instead of char*.
      
      Optimized code a bit.
    tests/mysql_client_test.c:
      Added test for (short) status.
      
      After defining out (ifdef) COM_DROP_DB and COM_CREATE_DB
      in mysqld.cc mysql_client_test needed to be informed that
      failing in recognizing these commands is not fatal error
      anymore.
    e94087c5
mysqld.cc 294 KB