summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-03-22 22:55:08 +0200
committerunknown <bell@sanja.is.com.ua>2002-03-22 22:55:08 +0200
commit3d2ac023a0356f72c64487715364232a3bd11abd (patch)
treea691fc4031ec0bdda379decf4651d4789739c5e8 /sql/sql_class.cc
parent58e0b04efc2655cafd2ba46b75c6f59e99aa5459 (diff)
downloadmariadb-git-3d2ac023a0356f72c64487715364232a3bd11abd.tar.gz
added building without query cache
configure.in: new configure parameter (now only for embeded server) include/my_global.h: now query cache always included in server, because of problrms with test suit mysql-test/r/flush.result: removed double testing mysql-test/t/flush.test: removed double testing mysql-test/t/grant_cache.test: now it is only memo about query cache mysql-test/t/query_cache.test: now it is only memo about query cache
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 810342c2bc3..fdb7825e344 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -122,10 +122,14 @@ THD::THD():user_time(0),fatal_error(0),last_insert_id_used(0),
server_id = ::server_id;
slave_net = 0;
log_pos = 0;
- server_status=SERVER_STATUS_AUTOCOMMIT;
+ server_status= SERVER_STATUS_AUTOCOMMIT;
update_lock_default= low_priority_updates ? TL_WRITE_LOW_PRIORITY : TL_WRITE;
- options=thd_startup_options;
- query_cache_type = (byte) query_cache_startup_type;
+ options= thd_startup_options;
+#ifdef HAVE_QUERY_CACHE
+ query_cache_type= (byte) query_cache_startup_type;
+#else
+ query_cache_type= 0; //Safety
+#endif
sql_mode=(uint) opt_sql_mode;
inactive_timeout=net_wait_timeout;
open_options=ha_open_options;