diff options
author | unknown <konstantin@mysql.com> | 2005-06-17 23:26:25 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-06-17 23:26:25 +0400 |
commit | 85e0957ac2fc92bf6f4a701515e0bca1adf12be6 (patch) | |
tree | c717e85867b447ea03e767d03e54e0085e7ecbee /sql/sql_class.h | |
parent | 7f269ebba04c5e6e645d9871af8a555628986430 (diff) | |
download | mariadb-git-85e0957ac2fc92bf6f4a701515e0bca1adf12be6.tar.gz |
Rename all prepared statements COM_ commands to prefix with COM_STMT_
libmysql/libmysql.c:
Rename.
libmysqld/lib_sql.cc:
Rename.
sql/item_cmpfunc.cc:
Use proper method to check for stmt prepare, only_prepare is removed.
sql/mysql_priv.h:
Remove an obsolete define. Rename mysql_stmt_free to mysql_stmt_close.
sql/sql_class.h:
Remove THD::only_prepare.
Rename.
sql/sql_lex.cc:
Rename COM_PREPARE -> COM_STMT_PREPARE
sql/sql_parse.cc:
Rename.
sql/sql_prepare.cc:
Rename.
sql/sql_yacc.yy:
Rename.
tests/mysql_client_test.c:
Rename.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 6097fb1d4ed..84c8354dfab 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1046,7 +1046,7 @@ public: #endif struct st_my_thread_var *mysys_var; /* - Type of current query: COM_PREPARE, COM_QUERY, etc. Set from + Type of current query: COM_STMT_PREPARE, COM_QUERY, etc. Set from first byte of the packet in do_command() */ enum enum_server_command command; @@ -1338,13 +1338,9 @@ public: return 0; #endif } - inline bool only_prepare() - { - return command == COM_PREPARE; - } inline bool fill_derived_tables() { - return !only_prepare() && !lex->only_view_structure(); + return !current_arena->is_stmt_prepare() && !lex->only_view_structure(); } inline gptr trans_alloc(unsigned int size) { |