summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorJan Lindström <jplindst@mariadb.org>2013-11-25 17:14:08 +0200
committerJan Lindström <jplindst@mariadb.org>2013-11-25 17:14:08 +0200
commit071edcfea05674f86926ee4c5fbf30f97c2ed368 (patch)
treec33fbb7c8bc5d568650226c8d71496a3d47bc10c /sql/item.h
parent4f85baab95f50448930a8c9915f7178aa121e66e (diff)
parent160236f880e92d2872d95ce72aab144f08456bcc (diff)
downloadmariadb-git-071edcfea05674f86926ee4c5fbf30f97c2ed368.tar.gz
Merge with MariaDB 5.5.34.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/item.h b/sql/item.h
index 22e5cdbaa80..27d42eb4389 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -897,6 +897,10 @@ public:
virtual String *val_str_ascii(String *str);
/*
+ Returns the val_str() value converted to the given character set.
+ */
+ String *val_str(String *str, String *converter, CHARSET_INFO *to);
+ /*
Return decimal representation of item with fixed point.
SYNOPSIS
@@ -1176,6 +1180,7 @@ public:
virtual bool view_used_tables_processor(uchar *arg) { return 0; }
virtual bool eval_not_null_tables(uchar *opt_arg) { return 0; }
virtual bool is_subquery_processor (uchar *opt_arg) { return 0; }
+ virtual bool count_sargable_conds(uchar *arg) { return 0; }
virtual bool limit_index_condition_pushdown_processor(uchar *opt_arg)
{
return FALSE;
@@ -2071,8 +2076,6 @@ public:
void update_used_tables()
{
update_table_bitmaps();
- if (field && field->table)
- maybe_null|= field->maybe_null();
}
Item *get_tmp_table_item(THD *thd);
bool collect_item_field_processor(uchar * arg);
@@ -3211,7 +3214,6 @@ public:
void update_used_tables()
{
orig_item->update_used_tables();
- maybe_null|= orig_item->maybe_null;
}
bool const_item() const { return orig_item->const_item(); }
table_map not_null_tables() const { return orig_item->not_null_tables(); }
@@ -3304,7 +3306,6 @@ public:
Item *replace_equal_field(uchar *arg);
table_map used_tables() const;
table_map not_null_tables() const;
- void update_used_tables();
bool walk(Item_processor processor, bool walk_subquery, uchar *arg)
{
return (*ref)->walk(processor, walk_subquery, arg) ||