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
cf7026b6
Commit
cf7026b6
authored
Mar 07, 2012
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psql: Avoid some spurious output if the server croaks.
Fixes a regression in commit
08146775
. Noah Misch
parent
16731221
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/bin/psql/common.c
src/bin/psql/common.c
+5
-3
No files found.
src/bin/psql/common.c
View file @
cf7026b6
...
...
@@ -740,7 +740,7 @@ ProcessResult(PGresult **results)
}
while
(
next_result
);
/* may need this to recover from conn loss during COPY */
if
(
!
CheckConnection
())
if
(
!
first_cycle
&&
!
CheckConnection
())
return
false
;
return
success
;
...
...
@@ -1015,8 +1015,10 @@ SendQuery(const char *query)
case
PQTRANS_UNKNOWN
:
default:
OK
=
false
;
psql_error
(
"unexpected transaction status (%d)
\n
"
,
transaction_status
);
/* PQTRANS_UNKNOWN is expected given a broken connection. */
if
(
transaction_status
!=
PQTRANS_UNKNOWN
||
ConnectionUp
())
psql_error
(
"unexpected transaction status (%d)
\n
"
,
transaction_status
);
break
;
}
...
...
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