summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-11-12 14:34:00 +0200
committerbell@sanja.is.com.ua <>2004-11-12 14:34:00 +0200
commit31f7811183b6dd197cb7643abbe1b56cec72b602 (patch)
tree7591e416fa1685ed1e41707824091a5ca7f9c2c1 /sql/sp_rcontext.cc
parent5bf7a8c30b7fb3c21a8cd57b4dad9b05b2a3b521 (diff)
downloadmariadb-git-31f7811183b6dd197cb7643abbe1b56cec72b602.tar.gz
post-review fixes
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r--sql/sp_rcontext.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc
index db298974c45..609882b84c6 100644
--- a/sql/sp_rcontext.cc
+++ b/sql/sp_rcontext.cc
@@ -153,7 +153,8 @@ sp_cursor::pre_open(THD *thd)
{
if (m_isopen)
{
- my_error(ER_SP_CURSOR_ALREADY_OPEN, MYF(0));
+ my_message(ER_SP_CURSOR_ALREADY_OPEN, ER(ER_SP_CURSOR_ALREADY_OPEN),
+ MYF(0));
return NULL;
}
@@ -187,7 +188,7 @@ sp_cursor::close(THD *thd)
{
if (! m_isopen)
{
- my_error(ER_SP_CURSOR_NOT_OPEN, MYF(0));
+ my_message(ER_SP_CURSOR_NOT_OPEN, ER(ER_SP_CURSOR_NOT_OPEN), MYF(0));
return -1;
}
destroy();
@@ -217,12 +218,12 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars)
if (! m_isopen)
{
- my_error(ER_SP_CURSOR_NOT_OPEN, MYF(0));
+ my_message(ER_SP_CURSOR_NOT_OPEN, ER(ER_SP_CURSOR_NOT_OPEN), MYF(0));
return -1;
}
if (m_current_row == NULL)
{
- my_error(ER_SP_FETCH_NO_DATA, MYF(0));
+ my_message(ER_SP_FETCH_NO_DATA, ER(ER_SP_FETCH_NO_DATA), MYF(0));
return -1;
}
@@ -234,7 +235,8 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars)
if (fldcount >= m_prot->get_field_count())
{
- my_error(ER_SP_WRONG_NO_OF_FETCH_ARGS, MYF(0));
+ my_message(ER_SP_WRONG_NO_OF_FETCH_ARGS,
+ ER(ER_SP_WRONG_NO_OF_FETCH_ARGS), MYF(0));
return -1;
}
s= row[fldcount];
@@ -260,7 +262,8 @@ sp_cursor::fetch(THD *thd, List<struct sp_pvar> *vars)
}
if (fldcount < m_prot->get_field_count())
{
- my_error(ER_SP_WRONG_NO_OF_FETCH_ARGS, MYF(0));
+ my_message(ER_SP_WRONG_NO_OF_FETCH_ARGS,
+ ER(ER_SP_WRONG_NO_OF_FETCH_ARGS), MYF(0));
return -1;
}
m_current_row= m_current_row->next;