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

« back to all changes in this revision

Viewing changes to mysql-test/t/gis.test

  • 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:
358
358
 
359
359
# Expected result is 36.3310176346905, but IA64 returns 36.3310176346904
360
360
# due to fused multiply-add instructions.
361
 
--replace_result 36.3310176346904 36.3310176346905
 
361
--replace_result 36.3310176346904 36.3310176346905 -114.87787186923326 -114.87787186923313 36.33101763469053 36.33101763469059 36.33101763469043 36.33101763469059
362
362
select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
363
363
t1 where object_id=85984;
364
364
 
744
744
SET @a=POLYFROMWKB(@a);
745
745
 
746
746
 
 
747
#
 
748
# Bug #57321    crashes and valgrind errors from spatial types
 
749
#
 
750
 
 
751
create table t1(a polygon NOT NULL)engine=myisam;
 
752
insert into t1 values (geomfromtext("point(0 1)"));
 
753
insert into t1 values (geomfromtext("point(1 0)"));
 
754
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
 
755
drop table t1;
 
756
 
 
757
 
 
758
--echo #
 
759
--echo # Test for bug #59888 "debug assertion when attempt to create spatial index
 
760
--echo #                      on char > 31 bytes".
 
761
--echo #
 
762
create table t1(a char(32) not null) engine=myisam;
 
763
--error ER_WRONG_ARGUMENTS
 
764
create spatial index i on t1 (a);
 
765
drop table t1;
 
766
 
 
767
 
 
768
#
 
769
# Bug#11767480 - SPATIAL INDEXES ON NON-SPATIAL COLUMNS CAUSE CRASHES.
 
770
#
 
771
CREATE TABLE t0 (a BINARY(32) NOT NULL);
 
772
--error ER_WRONG_ARGUMENTS
 
773
CREATE SPATIAL INDEX i on t0 (a);
 
774
INSERT INTO t0 VALUES (1);
 
775
 
 
776
--error ER_WRONG_ARGUMENTS
 
777
CREATE TABLE t1(
 
778
  col0 BINARY NOT NULL,
 
779
  col2 TIMESTAMP,
 
780
  SPATIAL INDEX i1 (col0)
 
781
) ENGINE=MyISAM;
 
782
 
 
783
# Test other ways to add indices
 
784
CREATE TABLE t1 (
 
785
  col0 BINARY NOT NULL,
 
786
  col2 TIMESTAMP
 
787
) ENGINE=MyISAM;
 
788
 
 
789
--error ER_WRONG_ARGUMENTS
 
790
CREATE SPATIAL INDEX idx0 ON t1(col0);
 
791
 
 
792
--error ER_WRONG_ARGUMENTS
 
793
ALTER TABLE t1 ADD SPATIAL INDEX i1 (col0);
 
794
 
 
795
CREATE TABLE t2 (
 
796
  col0 INTEGER NOT NULL,
 
797
  col1 POINT,
 
798
  col2 POINT
 
799
);
 
800
 
 
801
--error ER_WRONG_ARGUMENTS
 
802
CREATE SPATIAL INDEX idx0 ON t2 (col1, col2);
 
803
 
 
804
--error ER_WRONG_ARGUMENTS
 
805
CREATE TABLE t3 (
 
806
  col0 INTEGER NOT NULL,
 
807
  col1 POINT,
 
808
  col2 LINESTRING,
 
809
  SPATIAL INDEX i1 (col1, col2)
 
810
);
 
811
 
 
812
# cleanup
 
813
DROP TABLE t0, t1, t2;
 
814
 
747
815
--echo End of 5.1 tests