diff options
author | unknown <gluh@mysql.com> | 2006-07-03 13:19:18 +0500 |
---|---|---|
committer | unknown <gluh@mysql.com> | 2006-07-03 13:19:18 +0500 |
commit | 3e085bd882a7283d43423c82d412ce276ff4ddcb (patch) | |
tree | 92f15fb2e6a466fe825bb95eacd1187eeef200bb /sql/item.h | |
parent | 4c2db1bef100a1159f65d3fad0ec764727198e58 (diff) | |
parent | 8703b22e167c706d5a8c77a1e24948b4db3fafb3 (diff) | |
download | mariadb-git-3e085bd882a7283d43423c82d412ce276ff4ddcb.tar.gz |
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/gluh/MySQL/Merge/5.0-kt
sql/item.cc:
Auto merged
sql/item.h:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_show.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
sql/table.cc:
Auto merged
tests/mysql_client_test.c:
Auto merged
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h index 2190ce78374..b7b9f972f67 100644 --- a/sql/item.h +++ b/sql/item.h @@ -1134,6 +1134,28 @@ public: bool any_privileges); }; + +class Item_ident_for_show :public Item +{ +public: + Field *field; + const char *db_name; + const char *table_name; + + Item_ident_for_show(Field *par_field, const char *db_arg, + const char *table_name_arg) + :field(par_field), db_name(db_arg), table_name(table_name_arg) + {} + + enum Type type() const { return FIELD_ITEM; } + double val_real() { return field->val_real(); } + longlong val_int() { return field->val_int(); } + String *val_str(String *str) { return field->val_str(str); } + my_decimal *val_decimal(my_decimal *dec) { return field->val_decimal(dec); } + void make_field(Send_field *tmp_field); +}; + + class Item_equal; class COND_EQUAL; |