Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql $(EXTENSION).control

TESTS = $(wildcard test/sql/*.sql)
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --use-existing --inputdir=test
REGRESS_OPTS = --inputdir=test

MODULE_big = $(EXTENSION)
SRC = $(wildcard $(SRC_DIR)/*.c)
Expand Down
25 changes: 25 additions & 0 deletions test/expected/00_init.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
CREATE TABLE projects
( id integer
, name text
, project_name text
, client_id integer
, subclient_id int
);
-- ensure these dropped column cases are tested
ALTER TABLE projects DROP COLUMN project_name;
ALTER TABLE projects DROP COLUMN subclient_id;
INSERT INTO projects VALUES (1, 'Windows 7', 1);
INSERT INTO projects VALUES (2, 'has,comma', 1);
INSERT INTO projects VALUES (NULL, NULL, NULL);
INSERT INTO projects VALUES (4, 'OSX', 2);
INSERT INTO projects VALUES (NULL, 'has"quote', NULL);
INSERT INTO projects VALUES (5, 'has,comma and "quote"', 7);
INSERT INTO projects VALUES (6, E'has \n LF', 7);
INSERT INTO projects VALUES (7, E'has \r CR', 8);
INSERT INTO projects VALUES (8, E'has \r\n CRLF"', 8);
create extension if not exists pg_csv;
CREATE TABLE nasty (
"unusual"",names" INTEGER GENERATED ALWAYS AS IDENTITY,
text TEXT
);
INSERT INTO nasty (text) VALUES ('test');
File renamed without changes.
Loading