diff options
author | bell@sanja.is.com.ua <> | 2004-10-20 04:04:37 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-10-20 04:04:37 +0300 |
commit | 4714a6e7448672b93313deddfa67ad83f2084d01 (patch) | |
tree | 55e6ec4a0a572c0be2ba69da166ea204bf96502e /sql/sp_rcontext.cc | |
parent | 09e9651accec3339555634cf4699cb08f1945510 (diff) | |
download | mariadb-git-4714a6e7448672b93313deddfa67ad83f2084d01.tar.gz |
errors without code removed
net_printf/send_error calls replaced by my_error family functions
-1/1 (sent/unsent) error reporting removed
(WL#2133)
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r-- | sql/sp_rcontext.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc index 169c9809383..3f9ab39e358 100644 --- a/sql/sp_rcontext.cc +++ b/sql/sp_rcontext.cc @@ -148,7 +148,7 @@ sp_cursor::pre_open(THD *thd) { if (m_isopen) { - send_error(thd, ER_SP_CURSOR_ALREADY_OPEN); + my_error(ER_SP_CURSOR_ALREADY_OPEN, MYF(0)); return NULL; } @@ -182,7 +182,7 @@ sp_cursor::close(THD *thd) { if (! m_isopen) { - send_error(thd, ER_SP_CURSOR_NOT_OPEN); + my_error(ER_SP_CURSOR_NOT_OPEN, MYF(0)); return -1; } destroy(); @@ -212,12 +212,12 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars) if (! m_isopen) { - send_error(thd, ER_SP_CURSOR_NOT_OPEN); + my_error(ER_SP_CURSOR_NOT_OPEN, MYF(0)); return -1; } if (m_current_row == NULL) { - send_error(thd, ER_SP_FETCH_NO_DATA); + my_error(ER_SP_FETCH_NO_DATA, MYF(0)); return -1; } @@ -229,7 +229,7 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars) if (fldcount >= m_prot->get_field_count()) { - send_error(thd, ER_SP_WRONG_NO_OF_FETCH_ARGS); + my_error(ER_SP_WRONG_NO_OF_FETCH_ARGS, MYF(0)); return -1; } s= row[fldcount]; @@ -255,7 +255,7 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars) } if (fldcount < m_prot->get_field_count()) { - send_error(thd, ER_SP_WRONG_NO_OF_FETCH_ARGS); + my_error(ER_SP_WRONG_NO_OF_FETCH_ARGS, MYF(0)); return -1; } m_current_row= m_current_row->next; |