diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-17 15:40:03 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-17 15:40:03 +0300 |
commit | 4b90395e8561bc979a98f65e57ec0f0cb4d8048f (patch) | |
tree | 223c241e869976a0e08b0b04c79b6e43d262ab79 /libmysqld | |
parent | 25038c32f29d76c1cbb0c36a89bd91dbb9860e58 (diff) | |
download | mariadb-git-4b90395e8561bc979a98f65e57ec0f0cb4d8048f.tar.gz |
Fixed bug with SELECT * ... UNION
client/mysql.cc:
Increased version number
client/mysqltest.c:
Changed to use default path
include/mysql.h:
Changed prototype of mysql_server_init
libmysql/libmysql.c:
Changed prototype of mysql_server_init
libmysqld/lib_sql.cc:
Changed prototype of mysql_server_init
mysql-test/r/union.result:
Added test for UNION bug
mysql-test/t/union.test:
Added test for UNION bug
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 015ca7b7287..f07150c9845 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -203,17 +203,17 @@ check_connections1(THD *thd) static int check_connections2(THD * thd) { -uint connect_errors=0; -uint pkt_len = 0; -NET * net = &thd -> net; -if (protocol_version>9) net -> return_errno=1; + uint connect_errors=0; + uint pkt_len = 0; + NET * net = &thd -> net; + if (protocol_version>9) net -> return_errno=1; - if ( (pkt_len=my_net_read(net)) == packet_error || - pkt_len < MIN_HANDSHAKE_SIZE) - { - inc_host_errors(&thd->remote.sin_addr); - return(ER_HANDSHAKE_ERROR); - } + if ( (pkt_len=my_net_read(net)) == packet_error || + pkt_len < MIN_HANDSHAKE_SIZE) + { + inc_host_errors(&thd->remote.sin_addr); + return(ER_HANDSHAKE_ERROR); + } #ifdef _CUSTOMCONFIG_ #include "_cust_sql_parse.h" @@ -245,15 +245,6 @@ if (protocol_version>9) net -> return_errno=1; } - - - - - - - - - static bool check_user(THD *thd,enum_server_command command, const char *user, const char *passwd, const char *db, bool check_count) { @@ -317,7 +308,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user, extern "C"{ -void mysql_server_init(int argc, char **argv, const char **groups) +void mysql_server_init(int argc, const char **argv, const char **groups) { char hostname[FN_REFLEN]; @@ -331,19 +322,19 @@ void mysql_server_init(int argc, char **argv, const char **groups) if (argc) { argcp = &argc; - argvp = &argv; + argvp = (char***) &argv; } else { argcp = &fake_argc; - argvp = (char ***)&fake_argv; + argvp = (char ***) &fake_argv; } if (!groups) groups = fake_groups; my_umask=0660; // Default umask for new files my_umask_dir=0700; // Default umask for new directories - MY_INIT((char *)"mysqld"); // init my_sys library & pthreads + MY_INIT((char *)"mysqld_server"); // init my_sys library & pthreads tzset(); // Set tzname start_time=time((time_t*) 0); |