spatial index generated column bugfix && oms_view_bugfix
This commit is contained in:
@ -284,4 +284,15 @@ insert into t1 values (8,'{"b":2}', ST_GeomFromText('POLYGON((0 0, 0 2, 2 2, 2
|
||||
explain SELECT /*+ index(t1 g) */ * from t1 where ST_INTERSECTS(g,ST_GeomFromText('POINT(-1 -1)', 4326));
|
||||
alter table t1 drop column j;
|
||||
explain SELECT /*+ index(t1 g) */ * from t1 where ST_INTERSECTS(g,ST_GeomFromText('POINT(-1 -1)', 4326));
|
||||
drop table t1;
|
||||
alter table t1 add c0 char(20) before g;
|
||||
explain SELECT /*+ index(t1 g) */ * from t1 where ST_INTERSECTS(g,ST_GeomFromText('POINT(-1 -1)', 4326));
|
||||
alter table t1 modify c0 varchar(20);
|
||||
explain SELECT /*+ index(t1 g) */ * from t1 where ST_INTERSECTS(g,ST_GeomFromText('POINT(-1 -1)', 4326));
|
||||
drop table t1;
|
||||
|
||||
# bugfix:58073834
|
||||
drop table if exists tab;
|
||||
CREATE TABLE tab(c1 int NOT NULL PRIMARY KEY,c2 POINT NOT NULL,c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL);
|
||||
CREATE INDEX index3 ON tab(c3) ;
|
||||
ALTER TABLE tab CHANGE COLUMN c3 c33 LINESTRING;
|
||||
drop table tab;
|
||||
Reference in New Issue
Block a user