diff options
author | gluh@gluh.(none) <> | 2006-12-12 17:59:34 +0400 |
---|---|---|
committer | gluh@gluh.(none) <> | 2006-12-12 17:59:34 +0400 |
commit | c6d9cf1b1208b51454a0875e54ed93351fdc3f6a (patch) | |
tree | 8d5cfe93d01fa5ab58cf24e8c6b05e186486e1cd /mysql-test/t/gis.test | |
parent | c24381bdaaca307148888f2cf7c223570266c4f0 (diff) | |
parent | 883aa8d980b29ba35776f65c17c9c04c6c130cc5 (diff) | |
download | mariadb-git-c6d9cf1b1208b51454a0875e54ed93351fdc3f6a.tar.gz |
Merge mysql.com:/home/gluh/MySQL/Merge/5.1
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index 4e5a21c6789..196ff5b8ff0 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -375,6 +375,20 @@ drop table t1; select (asWKT(geomfromwkb((0x000000000140240000000000004024000000000000)))); select (asWKT(geomfromwkb((0x010100000000000000000024400000000000002440)))); +--enable_metadata +create table t1 (g GEOMETRY); +select * from t1; +select asbinary(g) from t1; +--disable_metadata +drop table t1; + +create table t1 (a TEXT, b GEOMETRY NOT NULL, SPATIAL KEY(b)); +alter table t1 disable keys; +--error 1263 +load data infile '../std_data_ln/bad_gis_data.dat' into table t1; +alter table t1 enable keys; +drop table t1; + # End of 4.1 tests # @@ -410,15 +424,7 @@ alter table t1 add primary key pti(pt); alter table t1 add primary key pti(pt(20)); drop table t1; ---enable_metadata -create table t1 (g GEOMETRY); -select * from t1; -select asbinary(g) from t1; ---disable_metadata -drop table t1; - create table t1 select GeomFromText('point(1 1)'); desc t1; drop table t1; - |