diff options
author | unknown <igor@olga.mysql.com> | 2006-12-13 00:39:13 -0800 |
---|---|---|
committer | unknown <igor@olga.mysql.com> | 2006-12-13 00:39:13 -0800 |
commit | 2f78d5ca81e39c55aa918758a1f9b4e46ce76d74 (patch) | |
tree | c4a565af72d4013055969672539b96fb64e4e886 /sql/sql_lex.cc | |
parent | 22192d083ace932c5ee2c29b550012648ebf245e (diff) | |
download | mariadb-git-2f78d5ca81e39c55aa918758a1f9b4e46ce76d74.tar.gz |
Fixed bug #25027.
Removed an assertion that was not valid for the cases where the query
in a prepared statement contained a single-row non-correlated
subquery that was used as an argument of the IS NULL predicate.
mysql-test/r/ps.result:
Added a test case for bug #25027.
mysql-test/t/ps.test:
Added a test case for bug #25027.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 3de842c8551..f5ec0c1161d 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1903,7 +1903,6 @@ void st_select_lex_unit::set_limit(SELECT_LEX *sl) { ha_rows select_limit_val; - DBUG_ASSERT(! thd->stmt_arena->is_stmt_prepare()); select_limit_val= (ha_rows)(sl->select_limit ? sl->select_limit->val_uint() : HA_POS_ERROR); offset_limit_cnt= (ha_rows)(sl->offset_limit ? sl->offset_limit->val_uint() : |