]> granicus.if.org Git - postgis/commitdiff
Jeff Adams: Adding a regression test for the loader that uses a schema-qualified...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Mar 2011 17:36:01 +0000 (17:36 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Mar 2011 17:36:01 +0000 (17:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6928 b70326c6-7e19-0410-871a-916f4a2858ee

regress/Makefile.in
regress/loader/PointWithSchema-post.sql [new file with mode: 0644]
regress/loader/PointWithSchema-pre.sql [new file with mode: 0644]
regress/loader/PointWithSchema.dbf [new file with mode: 0644]
regress/loader/PointWithSchema.opts [new file with mode: 0644]
regress/loader/PointWithSchema.select.expected [new file with mode: 0644]
regress/loader/PointWithSchema.select.sql [new file with mode: 0644]
regress/loader/PointWithSchema.shp [new file with mode: 0644]
regress/loader/PointWithSchema.shx [new file with mode: 0644]

index 7762955cd4e73319b56042d8137c83686b8622f9..eea28f9940e0c02e52badcc467a578193e5e2064 100644 (file)
@@ -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 (file)
index 0000000..57b80cb
--- /dev/null
@@ -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 (file)
index 0000000..6a860c3
--- /dev/null
@@ -0,0 +1 @@
+CREATE SCHEMA pgreg;
diff --git a/regress/loader/PointWithSchema.dbf b/regress/loader/PointWithSchema.dbf
new file mode 100644 (file)
index 0000000..13b4aee
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 (file)
index 0000000..04264ed
--- /dev/null
@@ -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 (file)
index 0000000..680e99b
--- /dev/null
@@ -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 (file)
index 0000000..38d217f
--- /dev/null
@@ -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 (file)
index 0000000..51d38e7
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 (file)
index 0000000..7db02af
Binary files /dev/null and b/regress/loader/PointWithSchema.shx differ