summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorpetr@mysql.com <>2005-09-08 18:25:42 +0200
committerpetr@mysql.com <>2005-09-08 18:25:42 +0200
commit4a28ddac1cf77fa8b2c7515a3623df6ea8a3f9dc (patch)
treec08168bd61b61bb609554187c18f46ee88be27d7 /sql/item.h
parentffea32c6f30e6f0e2fe5b3fb35ddb978909f160f (diff)
downloadmariadb-git-4a28ddac1cf77fa8b2c7515a3623df6ea8a3f9dc.tar.gz
fix for Bug #12849 Stored Procedure: Crash on procedure call with CHAR type 'INOUT' parameter
(recommit with the right Bug#)
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index f128c72413d..381ba98e193 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -715,9 +715,17 @@ public:
class Item_splocal : public Item
{
uint m_offset;
+
public:
LEX_STRING m_name;
+ /*
+ Buffer, pointing to the string value of the item. We need it to
+ protect internal buffer from changes. See comment to analogous
+ member in Item_param for more details.
+ */
+ String str_value_ptr;
+
/*
Position of this reference to SP variable in the statement (the
statement itself is in sp_instr_stmt::m_query).