diff options
author | pem@mysql.comhem.se <> | 2004-07-21 14:53:09 +0200 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-07-21 14:53:09 +0200 |
commit | c0ae84125825e5fb28b4872008ce984e70ae8166 (patch) | |
tree | 9c4a5fbacf4edbc4b2994c620f5d4a69b951f7d6 /sql/sp_rcontext.h | |
parent | 108be666d98c25108d4209cc582798a1e25d0b0a (diff) | |
download | mariadb-git-c0ae84125825e5fb28b4872008ce984e70ae8166.tar.gz |
Fixed BUG#2653: Undeclared variables not detected in stored procedures.
We now get an run-time error instead of a crash (although a slightly misleading
error message, but it's an improvement).
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r-- | sql/sp_rcontext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h index 1b83d3518b6..15a2fe62138 100644 --- a/sql/sp_rcontext.h +++ b/sql/sp_rcontext.h @@ -69,7 +69,8 @@ class sp_rcontext : public Sql_alloc m_frame[idx] = i; } - void + /* Returns 0 on success, -1 on (eval) failure */ + int set_item_eval(uint idx, Item *i, enum_field_types type); inline Item * |