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
d66a44a5
Commit
d66a44a5
authored
Mar 14, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reversed out libpq protocol patch for Tom Lane.
parent
8930699c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
26 deletions
+5
-26
src/interfaces/ecpg/preproc/preproc.c
src/interfaces/ecpg/preproc/preproc.c
+1
-1
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+4
-25
No files found.
src/interfaces/ecpg/preproc/preproc.c
View file @
d66a44a5
...
...
@@ -11220,7 +11220,7 @@ case 468:
case
469
:
#line 2621 "preproc.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
470
:
...
...
src/interfaces/libpq/fe-exec.c
View file @
d66a44a5
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.7
6 1999/03/14 16:46
:21 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.7
7 1999/03/14 18:12
:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -467,7 +467,6 @@ static void
parseInput
(
PGconn
*
conn
)
{
char
id
;
static
int
pendingT
=
0
;
/*
* Loop to parse successive complete messages available in the buffer.
...
...
@@ -536,16 +535,7 @@ parseInput(PGconn *conn)
PGRES_COMMAND_OK
);
if
(
pqGets
(
conn
->
result
->
cmdStatus
,
CMDSTATUS_LEN
,
conn
))
return
;
if
(
pendingT
)
{
/* Check the returned message */
/* if it's a SELECT or FETCH in a pendingT case, */
/* then it probably means no rows returned. */
/* We clear pendingT in that case. */
if
((
strncmp
(
conn
->
result
->
cmdStatus
,
"SELECT"
,
6
)
==
0
)
||
(
strncmp
(
conn
->
result
->
cmdStatus
,
"FETCH"
,
5
)
==
0
))
pendingT
=
0
;
}
if
(
!
pendingT
)
conn
->
asyncStatus
=
PGASYNC_READY
;
conn
->
asyncStatus
=
PGASYNC_READY
;
break
;
case
'E'
:
/* error return */
if
(
pqGets
(
conn
->
errorMessage
,
ERROR_MSG_LENGTH
,
conn
))
...
...
@@ -555,11 +545,10 @@ parseInput(PGconn *conn)
/* and build an error result holding the error message */
conn
->
result
=
PQmakeEmptyPGresult
(
conn
,
PGRES_FATAL_ERROR
);
if
(
!
pendingT
)
conn
->
asyncStatus
=
PGASYNC_READY
;
conn
->
asyncStatus
=
PGASYNC_READY
;
break
;
case
'Z'
:
/* backend is ready for new query */
conn
->
asyncStatus
=
PGASYNC_IDLE
;
pendingT
=
0
;
break
;
case
'I'
:
/* empty query */
/* read and throw away the closing '\0' */
...
...
@@ -574,7 +563,7 @@ parseInput(PGconn *conn)
if
(
conn
->
result
==
NULL
)
conn
->
result
=
PQmakeEmptyPGresult
(
conn
,
PGRES_EMPTY_QUERY
);
if
(
!
pendingT
)
conn
->
asyncStatus
=
PGASYNC_READY
;
conn
->
asyncStatus
=
PGASYNC_READY
;
break
;
case
'K'
:
/* secret key data from the backend */
...
...
@@ -595,15 +584,11 @@ parseInput(PGconn *conn)
break
;
case
'T'
:
/* row descriptions (start of query
* results) */
if
(
pendingT
)
{
DONOTICE
(
conn
,
"Got second 'T' message!
\n
"
);
}
if
(
conn
->
result
==
NULL
)
{
/* First 'T' in a query sequence */
if
(
getRowDescriptions
(
conn
))
return
;
pendingT
=
1
;
}
else
{
...
...
@@ -615,13 +600,11 @@ parseInput(PGconn *conn)
* We stop parsing until the application accepts
* the current result.
*/
pendingT
=
0
;
conn
->
asyncStatus
=
PGASYNC_READY
;
return
;
}
break
;
case
'D'
:
/* ASCII data tuple */
pendingT
=
0
;
if
(
conn
->
result
!=
NULL
)
{
/* Read another tuple of a normal query response */
...
...
@@ -639,7 +622,6 @@ parseInput(PGconn *conn)
}
break
;
case
'B'
:
/* Binary data tuple */
pendingT
=
0
;
if
(
conn
->
result
!=
NULL
)
{
/* Read another tuple of a normal query response */
...
...
@@ -657,15 +639,12 @@ parseInput(PGconn *conn)
}
break
;
case
'G'
:
/* Start Copy In */
pendingT
=
0
;
conn
->
asyncStatus
=
PGASYNC_COPY_IN
;
break
;
case
'H'
:
/* Start Copy Out */
pendingT
=
0
;
conn
->
asyncStatus
=
PGASYNC_COPY_OUT
;
break
;
default:
pendingT
=
0
;
sprintf
(
conn
->
errorMessage
,
"unknown protocol character '%c' read from backend. "
"(The protocol character is the first character the "
...
...
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