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
603c46d8
Commit
603c46d8
authored
Jun 13, 2002
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to accomodate updateable resultset mostly just call setSqlQuery on execute
parent
7873bed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
112 additions
and
1 deletion
+112
-1
src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
+112
-1
No files found.
src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
View file @
603c46d8
...
...
@@ -71,6 +71,8 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
public
int
executeUpdate
(
String
sql
)
throws
SQLException
{
this
.
execute
(
sql
);
if
(((
org
.
postgresql
.
ResultSet
)
result
).
reallyResultSet
())
throw
new
PSQLException
(
"postgresql.stat.result"
);
return
this
.
getUpdateCount
();
}
...
...
@@ -124,12 +126,17 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
rs
.
close
();
}
// New in 7.1, pass Statement so that ExecSQL can customise to it
result
=
connection
.
ExecSQL
(
sql
,
this
);
// New in 7.1, required for ResultSet.getStatement() to work
((
org
.
postgresql
.
jdbc2
.
ResultSet
)
result
).
setStatement
(
this
);
// Added this so that the Updateable resultset knows the query that gave this
((
org
.
postgresql
.
jdbc2
.
ResultSet
)
result
).
setSQLQuery
(
sql
);
return
(
result
!=
null
&&
((
org
.
postgresql
.
ResultSet
)
result
).
reallyResultSet
());
}
...
...
@@ -267,4 +274,108 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
{
resultsettype
=
value
;
}
}
// In JDK 1.4 not implemented
/**
*
* @param num
* @return
* @throws SQLException
*/
public
boolean
getMoreResults
(
int
num
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @return
* @throws SQLException
*/
public
java
.
sql
.
ResultSet
getGeneratedKeys
()
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @param a
* @param b
* @return
* @throws SQLException
*/
public
int
executeUpdate
(
String
a
,
int
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @param a
* @param b
* @return
* @throws SQLException
*/
public
int
executeUpdate
(
String
a
,
int
[]
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
int
executeUpdate
(
String
a
,
String
[]
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @param a
* @param b
* @return
* @throws SQLException
*/
public
boolean
execute
(
String
a
,
int
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @param a
* @param b
* @return
* @throws SQLException
*/
public
boolean
execute
(
String
a
,
int
[]
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @param a
* @param b
* @return
* @throws SQLException
*/
public
boolean
execute
(
String
a
,
String
[]
b
)
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
/**
*
* @return
* @throws SQLException
*/
public
int
getResultSetHoldability
()
throws
SQLException
{
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
}
\ No newline at end of file
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