subselect_gis.test
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:0k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. -- source include/have_geometry.inc
  2. --disable_warnings
  3. drop table if exists t1;
  4. --enable_warnings
  5. #
  6. # correct behavoiur for function from reduced subselect
  7. #
  8. create table t1(City VARCHAR(30),Location geometry);
  9. insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
  10. select City from t1 where (select
  11. intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5
  12. 50, 2.5 47, 2 47, 2 50))'))=0);
  13. drop table t1;
  14. # End of 4.1 tests