Commit 2a45a13c authored by unknown's avatar unknown

fix removation


sql/mysqld.cc:
  removing debugging stuff
sql/sql_derived.cc:
  fix removed
parent a109d180
......@@ -956,8 +956,8 @@ static void set_ports()
{ // Get port if not from commandline
struct servent *serv_ptr;
mysql_port = MYSQL_PORT;
// if ((serv_ptr = getservbyname("mysql", "tcp")))
// mysql_port = ntohs((u_short) serv_ptr->s_port); /* purecov: inspected */
if ((serv_ptr = getservbyname("mysql", "tcp")))
mysql_port = ntohs((u_short) serv_ptr->s_port); /* purecov: inspected */
if ((env = getenv("MYSQL_TCP_PORT")))
mysql_port = (uint) atoi(env); /* purecov: inspected */
}
......
......@@ -25,8 +25,7 @@
#include "sql_select.h"
#include "sql_acl.h"
//extern const char *any_db="*any*"; // Special symbol for check_access
extern const char *any_db;
extern const char *any_db="*any*"; // Special symbol for check_access
/*
Resolve derived tables in all queries
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment