Skip to content

Database Support

Philippe Marschall edited this page Mar 19, 2017 · 23 revisions

In theory any database with a JDBC 4.1 or later driver is supported.

In practice only the following databases have been tested:

  • Derby 10.13.1.1
  • H2 1.4.193
  • HSQLDB 2.3.3
  • MySQL 5.7 with the 6.0.5 driver
  • Oracle 12.1c with the 12.1c driver
  • PostgreS 9.6 with the 9.4.1212 driver
  • SQL Server 2016 with the 6.1.0 driver

Caveats

H2

  • does not support out parameters, use either @ReturnValue or no annotation at all
  • 1.4.193 or later is required

HSQLDB

  • functions do not support out parameters, do not use @ReturnValue, use no annotation at all

Postgres

  • pgjdbc 9.4.1210 or later is recommended

MySQL

  • ref cursors only work if you use neither @OutParameter nor @ReturnValue

Oracle

  • JDBC 4.2 is not supported with the 12.1c or earlier driver so OracleTypes.CURSOR is required for ref cursors

SQL Server

  • neither JDBC 4.1 nor JDBC 4.2 are fully supported, cursors don't work, see bugs #6 and #98.

Java 8 Date and Time API

Driver support is hit and miss.

Clone this wiki locally