~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/gis.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
960
960
2
961
961
DROP TABLE t1, t2;
962
962
End of 5.0 tests
 
963
#
 
964
# Test for bug #58650 "Failing assertion: primary_key_no == -1 ||
 
965
#                      primary_key_no == 0".
 
966
#
 
967
drop table if exists t1;
 
968
# The minimal test case.
 
969
create table t1 (a int not null, b linestring not null, unique key b (b(12)), unique key a (a));
 
970
drop table t1;
 
971
# The original test case.
 
972
create table t1 (a int not null, b linestring not null, unique key b (b(12)));
 
973
create unique index a on t1(a);
 
974
drop table t1;
963
975
create table `t1` (`col002` point)engine=myisam;
964
976
insert into t1 values (),(),();
965
977
select min(`col002`) from t1 union select `col002` from t1;
1014
1026
SET @a=POLYFROMWKB(@a);
1015
1027
SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440;
1016
1028
SET @a=POLYFROMWKB(@a);
 
1029
create table t1(a polygon NOT NULL)engine=myisam;
 
1030
insert into t1 values (geomfromtext("point(0 1)"));
 
1031
insert into t1 values (geomfromtext("point(1 0)"));
 
1032
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
 
1033
p
 
1034
NULL
 
1035
NULL
 
1036
drop table t1;
 
1037
#
 
1038
# Test for bug #59888 "debug assertion when attempt to create spatial index
 
1039
#                      on char > 31 bytes".
 
1040
#
 
1041
create table t1(a char(32) not null) engine=myisam;
 
1042
create spatial index i on t1 (a);
 
1043
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1044
drop table t1;
 
1045
CREATE TABLE t0 (a BINARY(32) NOT NULL);
 
1046
CREATE SPATIAL INDEX i on t0 (a);
 
1047
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1048
INSERT INTO t0 VALUES (1);
 
1049
CREATE TABLE t1(
 
1050
col0 BINARY NOT NULL,
 
1051
col2 TIMESTAMP,
 
1052
SPATIAL INDEX i1 (col0)
 
1053
) ENGINE=MyISAM;
 
1054
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1055
CREATE TABLE t1 (
 
1056
col0 BINARY NOT NULL,
 
1057
col2 TIMESTAMP
 
1058
) ENGINE=MyISAM;
 
1059
CREATE SPATIAL INDEX idx0 ON t1(col0);
 
1060
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1061
ALTER TABLE t1 ADD SPATIAL INDEX i1 (col0);
 
1062
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1063
CREATE TABLE t2 (
 
1064
col0 INTEGER NOT NULL,
 
1065
col1 POINT,
 
1066
col2 POINT
 
1067
);
 
1068
CREATE SPATIAL INDEX idx0 ON t2 (col1, col2);
 
1069
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1070
CREATE TABLE t3 (
 
1071
col0 INTEGER NOT NULL,
 
1072
col1 POINT,
 
1073
col2 LINESTRING,
 
1074
SPATIAL INDEX i1 (col1, col2)
 
1075
);
 
1076
ERROR HY000: Incorrect arguments to SPATIAL INDEX
 
1077
DROP TABLE t0, t1, t2;
1017
1078
End of 5.1 tests