summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-07-31 12:09:59 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-07-31 12:09:59 +0500
commit6312042ca7575ecbc2839cc07e6ba21a9c4ae56d (patch)
tree945e9b5bc53933eaf05007cb042ff06b2ea86aaf /sql/item.h
parent03adaa85c4a95480661688f3af251ef4fa05c83f (diff)
parent33fc4ad4e124413ef617a1a073bb50135f6a12af (diff)
downloadmariadb-git-6312042ca7575ecbc2839cc07e6ba21a9c4ae56d.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30120
into gleb.loc:/home/uchum/work/bk/5.1-opt sql/item.cc: Auto merged sql/item.h: Auto merged sql/sp_head.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/sp.result: Merge with 5.0-opt. mysql-test/t/sp.test: Merge with 5.0-opt.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index 5f4e0117d02..ab39505bf5f 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1054,9 +1054,18 @@ public:
SP variable in query text.
*/
uint pos_in_query;
+ /*
+ Byte length of SP variable name in the statement (see pos_in_query).
+ The value of this field may differ from the name_length value because
+ name_length contains byte length of UTF8-encoded item name, but
+ the query string (see sp_instr_stmt::m_query) is currently stored with
+ a charset from the SET NAMES statement.
+ */
+ uint len_in_query;
Item_splocal(const LEX_STRING &sp_var_name, uint sp_var_idx,
- enum_field_types sp_var_type, uint pos_in_q= 0);
+ enum_field_types sp_var_type,
+ uint pos_in_q= 0, uint len_in_q= 0);
bool is_splocal() { return 1; } /* Needed for error checking */