[CONJ-717] JDBC Conversion Function support Created: 2019-07-10 Updated: 2019-08-02 Resolved: 2019-07-30 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | 2.4.2 |
| Fix Version/s: | 2.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Khalid Shakir | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The JDBC escape syntax scalar conversion functions are technically optional but there are inconsistencies and only partial support in the MariaDB Connector/J:
Ideally more of the JDBC Conversion Function SQL types could be supported, such as {fn convert(SomeColumn, VARCHAR)} being replaced client side with something like CONCAT(SomeColumn). The above was discovered trying to use Lightbend's Slick MySQLProfile with the MariaDB Connector/J. The Slick method .asColumnOf[String] is what invokes the JDBC escape syntax conversion function with a SQL type of VARCHAR. |
| Comments |
| Comment by Diego Dupin [ 2019-07-30 ] |
|
Correction done in next release 2.4.3 with this commit Implementation is simpler: Just a conversion from some SQL_XXX to corresponding supported MariaDB type. " => "SELECT convert(2147483648, INTEGER)" |
| Comment by Diego Dupin [ 2019-07-31 ] |
|
erratum. MariaDB server has this kind of capabilities since 5.5, but not MySQL. so real client conversion is needed |