diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-09-27 10:13:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:51 +0400 |
commit | 76714a5c9a4c05fa7084f2c562a9eb50a0b7bd17 (patch) | |
tree | fc0e93ef9195d89d4079c8608e102012deb3b5e7 /sql/sp_pcontext.cc | |
parent | 4bb87996b915a9383c7bf33c8683f128d3791014 (diff) | |
download | mariadb-git-76714a5c9a4c05fa7084f2c562a9eb50a0b7bd17.tar.gz |
MDEV-10582 sql_mode=ORACLE: explicit cursor attributes %ISOPEN, %ROWCOUNT, %FOUND, %NOTFOUND
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r-- | sql/sp_pcontext.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc index 6b796cb95e9..daf8a6febd0 100644 --- a/sql/sp_pcontext.cc +++ b/sql/sp_pcontext.cc @@ -289,13 +289,15 @@ sp_condition_value *sp_pcontext::find_condition(const LEX_STRING name, static sp_condition_value + cond_invalid_cursor(ER_SP_CURSOR_NOT_OPEN), cond_no_data_found(ER_SP_FETCH_NO_DATA), cond_dup_val_on_index(ER_DUP_ENTRY), cond_too_many_rows(ER_TOO_MANY_ROWS); -static sp_condition sp_predefined_conditions[3]= +static sp_condition sp_predefined_conditions[]= { + sp_condition(C_STRING_WITH_LEN("INVALID_CURSOR"), &cond_invalid_cursor), sp_condition(C_STRING_WITH_LEN("NO_DATA_FOUND"), &cond_no_data_found), sp_condition(C_STRING_WITH_LEN("DUP_VAL_ON_INDEX"), &cond_dup_val_on_index), sp_condition(C_STRING_WITH_LEN("TOO_MANY_ROWS"), &cond_too_many_rows) |