Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ddf509eb
Commit
ddf509eb
authored
Dec 01, 2012
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak tests in COPY FREEZE
parent
8de72b66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/test/regress/expected/copy2.out
src/test/regress/expected/copy2.out
+10
-5
src/test/regress/sql/copy2.sql
src/test/regress/sql/copy2.sql
+0
-1
No files found.
src/test/regress/expected/copy2.out
View file @
ddf509eb
...
...
@@ -297,16 +297,20 @@ SELECT * FROM vistest;
(2 rows)
COMMIT;
BEGIN;
TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest;
a
---
a
b
x
y
(2 rows)
COMMIT;
TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
BEGIN;
INSERT INTO vistest VALUES ('z');
SAVEPOINT s1;
...
...
@@ -318,8 +322,8 @@ NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest;
a
---
a
b
p
g
z
d
e
...
...
@@ -360,6 +364,7 @@ SELECT * FROM vistest;
(2 rows)
DROP TABLE vistest;
DROP FUNCTION truncate_in_subxact();
DROP TABLE x, y;
DROP FUNCTION fn_x_before();
DROP FUNCTION fn_x_after();
src/test/regress/sql/copy2.sql
View file @
ddf509eb
...
...
@@ -229,7 +229,6 @@ INSERT INTO vistest VALUES ('z');
SAVEPOINT
s1
;
TRUNCATE
vistest
;
ROLLBACK
TO
SAVEPOINT
s1
;
-- FREEZE should be silently ignored here
COPY
vistest
FROM
stdin
CSV
FREEZE
;
d
e
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment