Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ffe356b5
Commit
ffe356b5
authored
23 years ago
by
Dave Cramer
Browse files
Options
Downloads
Patches
Plain Diff
backed out changes for cancel, no need to look for two 'Z' responses
parent
29ea8ff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
+1
-17
1 addition, 17 deletions
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
with
1 addition
and
17 deletions
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
+
1
−
17
View file @
ffe356b5
...
@@ -13,7 +13,7 @@ import org.postgresql.util.PSQLException;
...
@@ -13,7 +13,7 @@ import org.postgresql.util.PSQLException;
* <p>The lifetime of a QueryExecutor object is from sending the query
* <p>The lifetime of a QueryExecutor object is from sending the query
* until the response has been received from the backend.
* until the response has been received from the backend.
*
*
* $Id: QueryExecutor.java,v 1.
7
2002/03/05
18:0
1:
2
7 davec Exp $
* $Id: QueryExecutor.java,v 1.
8
2002/03/05
20:1
1:
5
7 davec Exp $
*/
*/
public
class
QueryExecutor
public
class
QueryExecutor
...
@@ -57,7 +57,6 @@ public class QueryExecutor
...
@@ -57,7 +57,6 @@ public class QueryExecutor
int
fqp
=
0
;
int
fqp
=
0
;
boolean
hfr
=
false
;
boolean
hfr
=
false
;
int
lastMessage
=
0
;
synchronized
(
pg_stream
)
synchronized
(
pg_stream
)
{
{
...
@@ -113,26 +112,11 @@ public class QueryExecutor
...
@@ -113,26 +112,11 @@ public class QueryExecutor
receiveFields
();
receiveFields
();
break
;
break
;
case
'Z'
:
// backend ready for query, ignore for now :-)
case
'Z'
:
// backend ready for query, ignore for now :-)
if
(
lastMessage
==
'Z'
)
{
try
{
pg_stream
.
SendChar
(
'Q'
);
pg_stream
.
SendChar
(
' '
);
pg_stream
.
SendChar
(
0
);
pg_stream
.
flush
();
}
catch
(
IOException
e
)
{
throw
new
PSQLException
(
"postgresql.con.ioerror"
,
e
);
}
fqp
++;
}
break
;
break
;
default
:
default
:
throw
new
PSQLException
(
"postgresql.con.type"
,
throw
new
PSQLException
(
"postgresql.con.type"
,
new
Character
((
char
)
c
));
new
Character
((
char
)
c
));
}
}
lastMessage
=
c
;
}
}
return
connection
.
getResultSet
(
connection
,
statement
,
fields
,
tuples
,
status
,
update_count
,
insert_oid
,
binaryCursor
);
return
connection
.
getResultSet
(
connection
,
statement
,
fields
,
tuples
,
status
,
update_count
,
insert_oid
,
binaryCursor
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment