diff options
author | Kristofer Pettersson <kristofer.pettersson@oracle.com> | 2010-09-08 09:36:39 +0200 |
---|---|---|
committer | Kristofer Pettersson <kristofer.pettersson@oracle.com> | 2010-09-08 09:36:39 +0200 |
commit | 8e261a9d368adc7e5a66fe9876ad3a3d4dcad02b (patch) | |
tree | cd611056334ece0c5292987083c3494df3ad5e56 /sql/item_geofunc.h | |
parent | 4151d068d09d08a40c59ecb8031878f3d16b45b2 (diff) | |
parent | 6d18ac0308be36cc819f498d57930976969e17f7 (diff) | |
download | mariadb-git-8e261a9d368adc7e5a66fe9876ad3a3d4dcad02b.tar.gz |
merge 5.1-security => 5.5-security
Diffstat (limited to 'sql/item_geofunc.h')
-rw-r--r-- | sql/item_geofunc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_geofunc.h b/sql/item_geofunc.h index 25755de1e2c..9360013fa80 100644 --- a/sql/item_geofunc.h +++ b/sql/item_geofunc.h @@ -179,6 +179,19 @@ public: item_type=it; } String *val_str(String *); + void fix_length_and_dec() + { + for( unsigned int i=0; i<arg_count; ++i) + { + if( args[i]->fixed && args[i]->field_type() != MYSQL_TYPE_GEOMETRY) + { + String str; + args[i]->val_str(&str); + my_error(ER_ILLEGAL_VALUE_FOR_TYPE,MYF(0),"non geometric",str.c_ptr()); + } + } + } + const char *func_name() const { return "multipoint"; } }; |