You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.69945�
Client Operating System
macOS 14.5
JAVA/JVM version
17.0.9
Problem description
The method DatabaseMetaData.getSQLKeywords doesn't return all the reserved keywords for Redshift.
According to the JDBC spec this method should return:
a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.
The method, implemented in com.amazon.redshift.jdbc.RedshiftDatabaseMetaData returns the following list:
For example, aes128 or aes256 are not included, they are not part of SQL 2003 keywords, and they are reserved keywords, as they must be quoted.
JDBC trace logs
Reproduction code
The text was updated successfully, but these errors were encountered:
YotillaAntoni
changed the title
Missing SQL keywords in DatabaseMetaData.getSQLKeywords`
Missing SQL keywords in DatabaseMetaData.getSQLKeywordsJul 2, 2024
Driver version
2.1.0.29
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.69945�
Client Operating System
macOS 14.5
JAVA/JVM version
17.0.9
Problem description
The method
DatabaseMetaData.getSQLKeywords
doesn't return all the reserved keywords for Redshift.According to the JDBC spec this method should return:
The method, implemented in
com.amazon.redshift.jdbc.RedshiftDatabaseMetaData
returns the following list:But the list doesn't contain all the reserved words specified in https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html
For example,
aes128
oraes256
are not included, they are not part of SQL 2003 keywords, and they are reserved keywords, as they must be quoted.JDBC trace logs
Reproduction code
The text was updated successfully, but these errors were encountered: