Skip to content

Commit 9082c59

Browse files
committed
fix: identifier quotes in athena
1 parent 28472e3 commit 9082c59

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

src/util.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ function columnIdentifierToSql(ident) {
132132
const { database } = getParserOpt()
133133
if (!ident) return
134134
switch (database && database.toLowerCase()) {
135+
case 'athena':
135136
case 'db2':
136137
case 'postgresql':
137138
case 'redshift':
@@ -159,6 +160,7 @@ function identifierToSql(ident, isDual) {
159160
case 'mysql':
160161
case 'mariadb':
161162
return `\`${ident}\``
163+
case 'athena':
162164
case 'postgresql':
163165
case 'redshift':
164166
case 'snowflake':

0 commit comments

Comments
 (0)