summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.h
diff options
context:
space:
mode:
authorKristofer Pettersson <kristofer.pettersson@oracle.com>2010-09-08 09:36:39 +0200
committerKristofer Pettersson <kristofer.pettersson@oracle.com>2010-09-08 09:36:39 +0200
commitccc7ae0e17bdb074a9a124ea08609fb88f5879ad (patch)
treecd611056334ece0c5292987083c3494df3ad5e56 /sql/item_geofunc.h
parent1f84bb0c0fc4682b36d56b4f33fbdfb1c8e13dfa (diff)
parentdc285eb7cd1e22fe8f6feac065b03602a6d804c3 (diff)
downloadmariadb-git-ccc7ae0e17bdb074a9a124ea08609fb88f5879ad.tar.gz
merge 5.1-security => 5.5-security
Diffstat (limited to 'sql/item_geofunc.h')
-rw-r--r--sql/item_geofunc.h13
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"; }
};