summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2003-11-21 14:00:40 +0100
committerunknown <pem@mysql.comhem.se>2003-11-21 14:00:40 +0100
commit394ade63060a4c49e706c9e29c96ac4821d68bb4 (patch)
treeef97afec1a7efffc84273077eb0fcff88f5ec91a /sql/item.h
parent50685be51b54985cccaa299cb6d7a43ff1cbe2a1 (diff)
downloadmariadb-git-394ade63060a4c49e706c9e29c96ac4821d68bb4.tar.gz
Made Item_splocal printable.
sql/sp_head.cc: Fixed bug that showed up when using running with --debug.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index 413fcb1ca26..13b729095d8 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -230,11 +230,12 @@ class Item_splocal : public Item
private:
uint m_offset;
+ LEX_STRING m_name;
public:
- Item_splocal(uint offset)
- : m_offset(offset)
+ Item_splocal(LEX_STRING name, uint offset)
+ : m_offset(offset), m_name(name)
{
Item::maybe_null= TRUE;
}
@@ -305,6 +306,11 @@ public:
{
return this_item()->save_in_field(field, no_conversions);
}
+
+ inline void print(String *str)
+ {
+ str->append(m_name.str, m_name.length);
+ }
};