| Summary: | Java runtime throws SQL exception when fetching rows of data from MySQL | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | fahua jin <jinfahua> | ||||||||
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | jqian, jvincens | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
fahua jin
Created attachment 204925 [details]
table schema
Created attachment 204926 [details]
SQL data
Created attachment 204927 [details]
The sample project.
According to the documentation add relaxAutoCommit=true to the end of your JDBC url. The & is used to concat multiple properties. Since you are already suppling a user and password on the URL you would add &relaxAutoCommit=true. Also note you can put the user and password in a dictionary and pass the dictionary to the SQLDataSource constructor. The constructor converts the dictionary to properties and passes it to the DriverManager when we get the connection. You may also be able to pass the relaxAutoCommit property in using the dictionary. (In reply to comment #4) > According to the documentation add relaxAutoCommit=true to the end of your JDBC > url. > The & is used to concat multiple properties. Since you are already suppling a > user and password on the URL you would add &relaxAutoCommit=true. > > Also note you can put the user and password in a dictionary and pass the > dictionary to the SQLDataSource constructor. The constructor converts the > dictionary to properties and passes it to the DriverManager when we get the > connection. You may also be able to pass the relaxAutoCommit property in using > the dictionary. Thanks Joe. |