diff options
author | mskold@mysql.com <> | 2005-01-04 16:01:24 +0100 |
---|---|---|
committer | mskold@mysql.com <> | 2005-01-04 16:01:24 +0100 |
commit | 646f10030b3c98c0ef7cf75ee03ad208187e612d (patch) | |
tree | efe8ea21dbff3d4235a934865a8a8b2b21ab0435 /sql/ha_ndbcluster.h | |
parent | d3b643d71fedaed27d28316e49a46ba89afe39d2 (diff) | |
download | mariadb-git-646f10030b3c98c0ef7cf75ee03ad208187e612d.tar.gz |
Added support for different int sizes in condition pushdown
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r-- | sql/ha_ndbcluster.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 40dff8ef525..9e53c5bc2cc 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -103,18 +103,19 @@ class Ndb_item { Ndb_item(Item_func::Functype func_type); ~Ndb_item(); void print(String *str); - bool isBig() + bool is_big() { enum_field_types type= value.field_value->field->type(); return (type == MYSQL_TYPE_LONGLONG || type == MYSQL_TYPE_INT24); - } + }; + uint32 pack_length() { return value.field_value->field->pack_length(); }; // Getters and Setters - longlong getIntValue() { return value.int_value; }; - double getRealValue() { return value.real_value; }; - String * getStringValue() { return &value.string_value->s; }; - CHARSET_INFO * getStringCharset() { return value.string_value->c; }; - Field * getField() { return value.field_value->field; }; - int getFieldNo() { return value.field_value->column_no; }; + longlong get_int_value() { return value.int_value; }; + double get_real_value() { return value.real_value; }; + String * get_string_value() { return &value.string_value->s; }; + CHARSET_INFO * get_string_charset() { return value.string_value->c; }; + Field * get_field() { return value.field_value->field; }; + int get_field_no() { return value.field_value->column_no; }; public: NDB_ITEM_TYPE type; |