Skip to content

Commit 4136968

Browse files
committed
enable spatial indexes in innodb vcol tests
1 parent c2b2cb8 commit 4136968

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

mysql-test/suite/vcol/r/vcol_keys_innodb.result

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ drop table t1;
9999
#
100100
# TODO: FULLTEXT INDEX
101101
# SPATIAL INDEX
102+
# Error "All parts of a SPATIAL index must be NOT NULL"
103+
create table t1 (a int, b geometry as (a+1) persistent, spatial index (b));
104+
ERROR 42000: All parts of a SPATIAL index must be NOT NULL
105+
create table t1 (a int, b int as (a+1) persistent);
106+
alter table t1 add spatial index (b);
107+
ERROR HY000: Incorrect arguments to SPATIAL INDEX
108+
drop table t1;
102109
# FOREIGN KEY
103110
# Rejected FK options.
104111
create table t1 (a int, b int as (a+1) persistent,

mysql-test/suite/vcol/t/vcol_keys_innodb.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@
3434
##### Storage engine to be tested
3535
# Set the session storage engine
3636
--source include/have_innodb.inc
37-
eval SET @@session.storage_engine = 'InnoDB';
37+
SET @@session.storage_engine = 'InnoDB';
3838

3939
##### Workarounds for known open engine specific bugs
4040
# none
4141

4242
#------------------------------------------------------------------------------#
4343
# Execute the tests to be applied to all storage engines
44-
let $skip_spatial_index_check = 1;
4544
--source suite/vcol/inc/vcol_keys.inc
4645

4746
#------------------------------------------------------------------------------#

mysql-test/suite/vcol/t/vcol_keys_myisam.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
##### Storage engine to be tested
3535
# Set the session storage engine
36-
eval SET @@session.storage_engine = 'MyISAM';
36+
SET @@session.storage_engine = 'MyISAM';
3737

3838
##### Workarounds for known open engine specific bugs
3939
# none

0 commit comments

Comments
 (0)