mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Quoting of TIMESTAMP columns and small optimizations
Build-tools/Do-compile: Fixes for remote build Docs/manual.texi: Mainly updates for Access 2000 client/mysqldump.c: Added quoting of TIMESTAMP columns include/mysql.h: Added quoting of TIMESTAMP columns include/mysql_com.h: Added quoting of TIMESTAMP columns libmysql/libmysql.c: Added quoting of TIMESTAMP columns scripts/mysql_install_db.sh: Fixed http address sql-bench/Results/ATIS-mysql-NT_4.0: New test results sql-bench/Results/RUN-mysql-NT_4.0: New test results sql-bench/Results/alter-table-mysql-NT_4.0: New test results sql-bench/Results/big-tables-mysql-NT_4.0: New test results sql-bench/Results/connect-mysql-NT_4.0: New test results sql-bench/Results/create-mysql-NT_4.0: New test results sql-bench/Results/insert-mysql-NT_4.0: New test results sql-bench/Results/select-mysql-NT_4.0: New test results sql-bench/Results/wisconsin-mysql-NT_4.0: New test results sql/ChangeLog: Changelog sql/field.h: Added quoting of TIMESTAMP columns sql/mysql_priv.h: Optimizing sql/mysqld.cc: Optimizing sql/sql_class.cc: Optimizing sql/sql_parse.cc: Added use of new 'localhost' variable sql/violite.c: Fixed print bug
This commit is contained in:
@ -180,10 +180,7 @@ check_connections(THD *thd)
|
||||
#if !defined(HAVE_SYS_UN_H) || defined(HAVE_mit_thread)
|
||||
/* Fast local hostname resolve for Win32 */
|
||||
if (!strcmp(thd->ip,"127.0.0.1"))
|
||||
{
|
||||
if (!(thd->host=my_strdup("localhost",MYF(0))))
|
||||
return (ER_OUT_OF_RESOURCES);
|
||||
}
|
||||
thd->host=(char*) localhost;
|
||||
else
|
||||
#endif
|
||||
if (!(specialflag & SPECIAL_NO_RESOLVE))
|
||||
@ -199,9 +196,9 @@ check_connections(THD *thd)
|
||||
if (acl_check_host(thd->host,thd->ip))
|
||||
return(ER_HOST_NOT_PRIVILEGED);
|
||||
}
|
||||
else /* No hostname means that the connection was on a socket */
|
||||
else /* Hostname given means that the connection was on a socket */
|
||||
{
|
||||
DBUG_PRINT("general",("Host: localhost"));
|
||||
DBUG_PRINT("general",("Host: %s",thd->host));
|
||||
thd->ip=0;
|
||||
bzero((char*) &thd->remote,sizeof(struct sockaddr));
|
||||
}
|
||||
@ -561,7 +558,7 @@ bool do_command(THD *thd)
|
||||
{
|
||||
packet=(char*) net->read_pos;
|
||||
command = (enum enum_server_command) (uchar) packet[0];
|
||||
DBUG_PRINT("general",("Command on socket %s = %d (%s)",
|
||||
DBUG_PRINT("general",("Command on %s = %d (%s)",
|
||||
vio_description(net->vio), command,
|
||||
command_name[command]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user