summaryrefslogtreecommitdiff
path: root/sql/sql_bootstrap.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-03-03 10:24:16 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2021-03-18 08:02:48 +0100
commit9186ff88dad674ba4c335a47e9657e5b54efbf69 (patch)
treea68edc5fd765a782cfb13d40f3e1be58b1ae217a /sql/sql_bootstrap.h
parent601c577142639d7bde947d071ca944c16920340c (diff)
downloadmariadb-git-9186ff88dad674ba4c335a47e9657e5b54efbf69.tar.gz
MDEV-9077 - sys schema preparation
- increase MAX_BOOTSTRAP_QUERY_SIZE (sys.schema has SP over 50K large) don't allocate bootstrap query on heap anymore. - support DELIMITER in bootstrap
Diffstat (limited to 'sql/sql_bootstrap.h')
-rw-r--r--sql/sql_bootstrap.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sql/sql_bootstrap.h b/sql/sql_bootstrap.h
index f12d66a522e..e5b9b3a55c2 100644
--- a/sql/sql_bootstrap.h
+++ b/sql/sql_bootstrap.h
@@ -23,7 +23,7 @@
The longest query in use depends on the documentation content,
see the file fill_help_tables.sql
*/
-#define MAX_BOOTSTRAP_QUERY_SIZE 20000
+#define MAX_BOOTSTRAP_QUERY_SIZE 60000
/**
The maximum size of a bootstrap query, expressed in a single line.
Do not increase this size, use the multiline syntax instead.
@@ -39,8 +39,16 @@
typedef void *fgets_input_t;
typedef char * (*fgets_fn_t)(char *, size_t, fgets_input_t, int *error);
-int read_bootstrap_query(char *query, int *query_length,
- fgets_input_t input, fgets_fn_t fgets_fn, int *error);
+#ifdef __cplusplus
+extern "C" {
+#endif
+int read_bootstrap_query(char *query, int *query_length, fgets_input_t input,
+ fgets_fn_t fgets_fn,
+ int preserve_delimiter,
+ int *error);
+#ifdef __cplusplus
+}
+#endif
#endif