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
90ade5b7
Commit
90ade5b7
authored
Aug 12, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with NoData message from backend. Needed for case where
PQexecParams is used with a statement that doesn't return data.
parent
b6e5823e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/fe-protocol3.c
+13
-3
No files found.
src/interfaces/libpq/fe-protocol3.c
View file @
90ade5b7
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.
6 2003/08/04 02:40:20 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.
7 2003/08/12 21:34:44 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -232,8 +232,7 @@ pqParseInput3(PGconn *conn)
...
@@ -232,8 +232,7 @@ pqParseInput3(PGconn *conn)
if
(
pqGetInt
(
&
(
conn
->
be_key
),
4
,
conn
))
if
(
pqGetInt
(
&
(
conn
->
be_key
),
4
,
conn
))
return
;
return
;
break
;
break
;
case
'T'
:
/* row descriptions (start of query
case
'T'
:
/* Row Description */
* results) */
if
(
conn
->
result
==
NULL
)
if
(
conn
->
result
==
NULL
)
{
{
/* First 'T' in a query sequence */
/* First 'T' in a query sequence */
...
@@ -253,6 +252,17 @@ pqParseInput3(PGconn *conn)
...
@@ -253,6 +252,17 @@ pqParseInput3(PGconn *conn)
return
;
return
;
}
}
break
;
break
;
case
'n'
:
/* No Data */
/*
* NoData indicates that we will not be seeing a
* RowDescription message because the statement or
* portal inquired about doesn't return rows.
* Set up a COMMAND_OK result, instead of TUPLES_OK.
*/
if
(
conn
->
result
==
NULL
)
conn
->
result
=
PQmakeEmptyPGresult
(
conn
,
PGRES_COMMAND_OK
);
break
;
case
'D'
:
/* Data Row */
case
'D'
:
/* Data Row */
if
(
conn
->
result
!=
NULL
&&
if
(
conn
->
result
!=
NULL
&&
conn
->
result
->
resultStatus
==
PGRES_TUPLES_OK
)
conn
->
result
->
resultStatus
==
PGRES_TUPLES_OK
)
...
...
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