summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-01-25 23:12:35 +0100
committerSergei Golubchik <serg@mariadb.org>2019-01-27 18:54:12 +0100
commit2175bfce3e9da8332f10ab0e0286dc93915533a2 (patch)
treeb45ab5e6be1ed5619c229202db5139d69b3cbc23 /config.h.cmake
parent21f9037186f8a4bfb45486b9c28dd146e9df0e00 (diff)
downloadmariadb-git-2175bfce3e9da8332f10ab0e0286dc93915533a2.tar.gz
Crude "auto-load-data-local-infile" modemariadb-5.5.63
Disable LOAD DATA LOCAL INFILE suport by default and auto-enable it for the duration of one query, if the query string starts with the word "load". In all other cases the application should enable LOAD DATA LOCAL INFILE support explicitly.
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 99a2ebdd093..271d77f2e5a 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -530,7 +530,11 @@
/*
MySQL features
*/
-#cmakedefine ENABLED_LOCAL_INFILE 1
+#define LOCAL_INFILE_MODE_OFF 0
+#define LOCAL_INFILE_MODE_ON 1
+#define LOCAL_INFILE_MODE_AUTO 2
+#define ENABLED_LOCAL_INFILE LOCAL_INFILE_MODE_@ENABLED_LOCAL_INFILE@
+
#cmakedefine ENABLED_PROFILING 1
#cmakedefine EXTRA_DEBUG 1
#cmakedefine BACKUP_TEST 1