[CONJ-314] Prepare Statement doesn't remove { } characters Created: 2016-06-14 Updated: 2016-06-22 Resolved: 2016-06-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0-RC |
| Type: | Bug | Priority: | Major |
| Reporter: | Leonid Kogan | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Description |
|
This is issue shows up when MariaDB connector is used with EclipseLink. . Query is : { CALL sp_list() } Error Code: 1064 |
| Comments |
| Comment by Vladislav Vaintroub [ 2016-06-14 ] | |||||||||||||||
|
https://docs.oracle.com/javase/7/docs/api/java/sql/CallableStatement.html does not have spaces after the curly bracket before CALL. I have not seen any mentioning of spaces in escape sequences (moreover, standard uses lowercase everywhere). https://docs.oracle.com/cd/E13157_01/wlevs/docs30/jdbc_drivers/sqlescape.html | |||||||||||||||
| Comment by Diego Dupin [ 2016-06-15 ] | |||||||||||||||
|
i don't understand this escaping problem : some existing tests :
server will have the query "call TEST_SP1()". Can you provide a small snippet of code so i can understand to problem, and indicate the driver version you're using ? | |||||||||||||||
| Comment by Diego Dupin [ 2016-06-16 ] | |||||||||||||||
|
Hi leonid. As you have say in another email problem is on statement and PrepareStatement, not callableStatement. Correction done and available by snapshot :
Can you confirm that solves your problem ? |