summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-04-15 22:04:16 +0300
committerunknown <monty@mashka.mysql.fi>2003-04-15 22:04:16 +0300
commitfea393b2ba29aef3316640b001a981736e79a4de (patch)
tree59cab832c43f9b1e9dcb2b6d434d33955fd2c07e /sql/net_serv.cc
parente32d7244059c06b0722f49e0d02613c2eb7a8d5c (diff)
downloadmariadb-git-fea393b2ba29aef3316640b001a981736e79a4de.tar.gz
Fixed bug in SUM() with NULL:s
Added logging of warnings for failed connections with ssl. Fixed bug in symbolic link handling on Windows include/my_global.h: Added replication flags from 4.1 mysql-test/r/func_group.result: Added test for SUM(NULL) mysql-test/t/func_group.test: Added test for SUM(NULL) sql/item_sum.cc: Fixed bug in SUM() with NULL:s sql/item_sum.h: Fixed bug in SUM() with NULL:s sql/mysqld.cc: Added option --symbolic-links Fixed bug in symbolic link handling on Windows sql/net_serv.cc: Code cleanup sql/sql_acl.cc: Added logging of warnings for failed connections with ssl. sql/sql_show.cc: Changed to use HAVE_REPLICATION instead of EMBEDDED_LIBRARY
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index 19f68e0b631..79d9041bb6d 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -47,13 +47,6 @@
can't normally do this the client should have a bigger max_allowed_packet.
*/
-#ifdef MYSQL_SERVER
-#define USE_QUERY_CACHE
-extern uint test_flags;
-extern void query_cache_insert(NET *net, const char *packet, ulong length);
-#else
-#endif
-
#if defined(__WIN__) || !defined(MYSQL_SERVER)
/* The following is because alarms doesn't work on windows. */
#define NO_ALARM
@@ -62,16 +55,23 @@ extern void query_cache_insert(NET *net, const char *packet, ulong length);
#ifndef NO_ALARM
#include "my_pthread.h"
void sql_print_error(const char *format,...);
-extern ulong bytes_sent, bytes_received;
-extern pthread_mutex_t LOCK_bytes_sent , LOCK_bytes_received;
#else
-#undef statistic_add
-#define statistic_add(A,B,C)
#define DONT_USE_THR_ALARM
#endif /* NO_ALARM */
#include "thr_alarm.h"
+#ifdef MYSQL_SERVER
+#define USE_QUERY_CACHE
+extern uint test_flags;
+extern void query_cache_insert(NET *net, const char *packet, ulong length);
+extern ulong bytes_sent, bytes_received;
+extern pthread_mutex_t LOCK_bytes_sent , LOCK_bytes_received;
+#else
+#undef statistic_add
+#define statistic_add(A,B,C)
+#endif
+
#define TEST_BLOCKING 8
#define MAX_PACKET_LENGTH (256L*256L*256L-1)