Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: SQL processing
-
Labels:None
-
Environment:any Oracle environment
-
Number of attachments :
Description
The example at http://groovy.codehaus.org/Database+features ...
// allow resultSets to be able to be changed
sql.resultSetConcurrency = java.sql.ResultSet.CONCUR_UPDATABLE
// change the data
sql.eachRow("select * from PERSON") {
it.firstname = it.firstname * 2
}
will not work with Oracle because Oracle disallows ResultSet CONCUR_UPDATABLE on "select * from t". However, Oracle allows it for "select t1.* from t t1" per the link in this ticket's summary. Looked to me like groovy.sql.DataSet.java would do this with a little tweaking, and should be harmless to other database environments.
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Paul King [ paulk_asert ] | |
| Resolution | Fixed [ 1 ] |
I also follow that's example. However, it show a error message:
ERROR:groovy.lang.MissingPropertyException: No such property: resultSetConcurrency for class: groovy.sql.Sql
the key code is:
//allow resultSets to be able to be changed
sql.resultSetConcurrency = java.sql.ResultSet.CONCUR_UPDATABLE
I don't know why will show this message.
Does anyone who can give me some information