diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-19 14:11:48 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-19 14:11:48 +0100 |
commit | 3de04825514e4dc3fd6f1a8f5eb18a280f817699 (patch) | |
tree | d5461ec6ad35812385dd5cfef327052838c471b4 /sql/sql_class.h | |
parent | 4f233c43b11b6f4f159350a192fa3fb3e3ce6c9a (diff) | |
parent | 02b76970c5da2b836d322e4189cdde79a5c15f4c (diff) | |
download | mariadb-git-3de04825514e4dc3fd6f1a8f5eb18a280f817699.tar.gz |
merge
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 2a332341cb7..a7a24725875 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -581,6 +581,8 @@ public: { return state == INITIALIZED_FOR_SP; } inline bool is_stmt_prepare_or_first_sp_execute() const { return (int)state < (int)PREPARED; } + inline bool is_stmt_prepare_or_first_stmt_execute() const + { return (int)state <= (int)PREPARED; } inline bool is_first_stmt_execute() const { return state == PREPARED; } inline bool is_stmt_execute() const { return state == PREPARED || state == EXECUTED; } |