Skip to content

Commit

Permalink
Add regression directories
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Dec 28, 2014
1 parent 36898e2 commit 23d7cfa
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
*.o
*.so
ogr_fdw_info
results/
sql/*
expected/*
5 changes: 5 additions & 0 deletions data/no_geom.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name,age,value
Peter,34,10.2
John,77,3.4
Paul,45,19.2
Matthew,35,18.2
4 changes: 4 additions & 0 deletions expected/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
21 changes: 21 additions & 0 deletions results/ogr_fdw.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CREATE EXTENSION ogr_fdw;
CREATE SERVER myserver
FOREIGN DATA WRAPPER ogr_fdw
OPTIONS (
datasource '/Users/pramsey/Code/pgsql-ogr-fdw/data',
format 'ESRI Shapefile' );
CREATE FOREIGN TABLE pt_two (
fid integer,
geom bytea,
name varchar,
age integer,
height real,
birthdate date )
SERVER myserver
OPTIONS ( layer 'pt_two' );
SELECT * FROM pt_two WHERE fid = 1;
fid | geom | name | age | height | birthdate
-----+----------------------------------------------+------+-----+--------+------------
1 | \x010100000054e943acd697e2bfc0895ee54a46cf3f | Paul | 33 | 5.84 | 03-25-1971
(1 row)

4 changes: 4 additions & 0 deletions sql/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

0 comments on commit 23d7cfa

Please sign in to comment.