From: Paul Ramsey Date: Fri, 18 Mar 2011 17:36:01 +0000 (+0000) Subject: Jeff Adams: Adding a regression test for the loader that uses a schema-qualified... X-Git-Tag: 2.0.0alpha1~1874 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c94ae0b2b95110cf7c96a0bd89b20d3b97615aaa;p=postgis Jeff Adams: Adding a regression test for the loader that uses a schema-qualified table name. git-svn-id: http://svn.osgeo.org/postgis/trunk@6928 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/Makefile.in b/regress/Makefile.in index 7762955cd..eea28f994 100644 --- a/regress/Makefile.in +++ b/regress/Makefile.in @@ -40,6 +40,7 @@ TESTS = \ loader/TSTPolygon \ loader/TSIPolygon \ loader/TSTIPolygon \ + loader/PointWithSchema \ loader/NoTransPoint \ loader/NotReallyMultiPoint \ loader/MultiToSinglePoint \ diff --git a/regress/loader/PointWithSchema-post.sql b/regress/loader/PointWithSchema-post.sql new file mode 100644 index 000000000..57b80cb4e --- /dev/null +++ b/regress/loader/PointWithSchema-post.sql @@ -0,0 +1,2 @@ +DROP TABLE IF EXISTS pgreg.loadedshp; +DROP SCHEMA pgreg; diff --git a/regress/loader/PointWithSchema-pre.sql b/regress/loader/PointWithSchema-pre.sql new file mode 100644 index 000000000..6a860c37b --- /dev/null +++ b/regress/loader/PointWithSchema-pre.sql @@ -0,0 +1 @@ +CREATE SCHEMA pgreg; diff --git a/regress/loader/PointWithSchema.dbf b/regress/loader/PointWithSchema.dbf new file mode 100644 index 000000000..13b4aeea0 Binary files /dev/null and b/regress/loader/PointWithSchema.dbf differ diff --git a/regress/loader/PointWithSchema.opts b/regress/loader/PointWithSchema.opts new file mode 100644 index 000000000..04264edc9 --- /dev/null +++ b/regress/loader/PointWithSchema.opts @@ -0,0 +1,2 @@ +# Test loading a table with a schema. +-g the_geom loader/PointWithSchema pgreg.loadedshp diff --git a/regress/loader/PointWithSchema.select.expected b/regress/loader/PointWithSchema.select.expected new file mode 100644 index 000000000..680e99b43 --- /dev/null +++ b/regress/loader/PointWithSchema.select.expected @@ -0,0 +1,3 @@ +POINT(0 1) +POINT(9 -1) +POINT(9 -1) diff --git a/regress/loader/PointWithSchema.select.sql b/regress/loader/PointWithSchema.select.sql new file mode 100644 index 000000000..38d217f8b --- /dev/null +++ b/regress/loader/PointWithSchema.select.sql @@ -0,0 +1,2 @@ +select ST_Asewkt(the_geom) from pgreg.loadedshp; + diff --git a/regress/loader/PointWithSchema.shp b/regress/loader/PointWithSchema.shp new file mode 100644 index 000000000..51d38e75d Binary files /dev/null and b/regress/loader/PointWithSchema.shp differ diff --git a/regress/loader/PointWithSchema.shx b/regress/loader/PointWithSchema.shx new file mode 100644 index 000000000..7db02aff8 Binary files /dev/null and b/regress/loader/PointWithSchema.shx differ