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
985e551b
Commit
985e551b
authored
Feb 04, 2003
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied Kris Jurkas patch to fix rollback and SQLException
parent
d23fd957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
+6
-4
No files found.
src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
View file @
985e551b
...
@@ -16,7 +16,7 @@ import org.postgresql.jdbc1.AbstractJdbc1Statement;
...
@@ -16,7 +16,7 @@ import org.postgresql.jdbc1.AbstractJdbc1Statement;
* <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.1
8 2003/02/04 09:20:08 barry
Exp $
* $Id: QueryExecutor.java,v 1.1
9 2003/02/04 11:01:52 davec
Exp $
*/
*/
public
class
QueryExecutor
public
class
QueryExecutor
...
@@ -189,14 +189,16 @@ public class QueryExecutor
...
@@ -189,14 +189,16 @@ public class QueryExecutor
*/
*/
private
void
sendQuery
()
throws
SQLException
private
void
sendQuery
()
throws
SQLException
{
{
for
(
int
i
=
0
;
i
<
m_binds
.
length
;
i
++
)
{
if
(
m_binds
[
i
]
==
null
)
throw
new
PSQLException
(
"postgresql.prep.param"
,
new
Integer
(
i
+
1
));
}
try
try
{
{
pg_stream
.
SendChar
(
'Q'
);
pg_stream
.
SendChar
(
'Q'
);
for
(
int
i
=
0
;
i
<
m_binds
.
length
;
++
i
)
for
(
int
i
=
0
;
i
<
m_binds
.
length
;
++
i
)
{
{
if
(
m_binds
[
i
]
==
null
)
throw
new
PSQLException
(
"postgresql.prep.param ("
+
i
+
")"
,
new
Integer
(
i
+
1
));
pg_stream
.
Send
(
connection
.
getEncoding
().
encode
(
m_sqlFrags
[
i
]));
pg_stream
.
Send
(
connection
.
getEncoding
().
encode
(
m_sqlFrags
[
i
]));
pg_stream
.
Send
(
connection
.
getEncoding
().
encode
(
m_binds
[
i
].
toString
()));
pg_stream
.
Send
(
connection
.
getEncoding
().
encode
(
m_binds
[
i
].
toString
()));
}
}
...
...
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