summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-12-19 11:27:22 +0300
committerAlexander Nozdrin <alik@sun.com>2009-12-19 11:27:22 +0300
commit02b76970c5da2b836d322e4189cdde79a5c15f4c (patch)
tree3b5c7e394cefb5bd79d4936b079c252c054b3a8c /sql/sql_class.h
parent3b103b4897cb62fffbdaaec066e27be5c957531e (diff)
parentdc70b216cd948a874ac2693398fe36abb32dee89 (diff)
downloadmariadb-git-02b76970c5da2b836d322e4189cdde79a5c15f4c.tar.gz
Auto-merge from mysql-next-mr.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 4156f2afa8e..d3e3f2a48b6 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; }