diff options
author | bell@laptop.sanja.is.com.ua <> | 2003-10-12 17:56:05 +0300 |
---|---|---|
committer | bell@laptop.sanja.is.com.ua <> | 2003-10-12 17:56:05 +0300 |
commit | ddf4d1e5292f226f266a486b84c70e01ec1f93fe (patch) | |
tree | 2d243d69c4c8bafa98d2f0bd9b6ed43fea552637 /sql/item_row.cc | |
parent | d6d6c5e1bb78215da668634310f592a9b4263db1 (diff) | |
download | mariadb-git-ddf4d1e5292f226f266a486b84c70e01ec1f93fe.tar.gz |
fixed printability of Items (all items except subselects)
(SCRUM) (WL#1274)
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r-- | sql/item_row.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc index fcc6e5192ec..89b38c8a753 100644 --- a/sql/item_row.cc +++ b/sql/item_row.cc @@ -118,6 +118,18 @@ bool Item_row::check_cols(uint c) return 0; } +void Item_row::print(String *str) +{ + str->append('('); + for (uint i= 0; i < arg_count; i++) + { + if (i) + str->append(','); + items[i]->print(str); + } + str->append(')'); +} + bool Item_row::walk(Item_processor processor, byte *arg) { for (uint i= 0; i < arg_count; i++) |