ALL should be added to the list of reserved keyword.

756 views
Skip to first unread message

Pavel

unread,
Jan 7, 2018, 6:38:04 PM1/7/18
to H2 Database
The list of the reserved keywords in  http://www.h2database.com/html/advanced.html in incomplete.

H2 version tested: 1.4.196.


Example:

Statement stat = connection.createStatement();
stat.execute("CREATE TABLE ALL ( I INTEGER)");
try (ResultSet rs = stat.executeQuery("SELECT ALL.I FROM ALL")) {
}

org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT ALL.[*]I FROM ALL"; expected "*, NOT, EXISTS, INTERSECTS, SELECT, FROM, WITH"


PS.
ALL is SQL 2003 reserved keyword.

Noel Grandin

unread,
Jan 8, 2018, 2:35:22 AM1/8/18
to h2-da...@googlegroups.com, Pavel
thanks, fixed in trunk

Reply all
Reply to author
Forward
0 new messages