summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 20983074eed..31e9dd494cd 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -594,6 +594,12 @@ public:
struct system_variables variables; // Changeable local variables
pthread_mutex_t LOCK_delete; // Locked before thd is deleted
+ /*
+ statement_name -> (Statement*) map of statements prepared using SQL syntax.
+ Hash element is SQL_PREP_STMT_ENTRY.
+ */
+ HASH sql_prepared_stmts;
+
/* all prepared statements and cursors of this connection */
Statement_map stmt_map;
/*
@@ -1276,6 +1282,14 @@ class user_var_entry
DTCollation collation;
};
+class Prepared_statement;
+/* Needed by THD::sql_prepared_stmts */
+typedef struct st_sql_prep_stmt_entry
+{
+ public:
+ LEX_STRING name;
+ Prepared_statement *stmt;
+}SQL_PREP_STMT_ENTRY;
/* Class for unique (removing of duplicates) */