Skip to content

Commit

Permalink
chore(databricks-jdbc): do not add extra backticks to table name if b…
Browse files Browse the repository at this point in the history
…ackticks already present (#8596)
  • Loading branch information
MikeNitsenko authored Aug 21, 2024
1 parent ddbd743 commit 30e759b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@ export class DatabricksDriver extends JDBCDriver {
* Returns quoted string.
*/
protected quoteIdentifier(identifier: string): string {
if (identifier.startsWith('`') && identifier.endsWith('`')) {
return identifier;
}
return `\`${identifier}\``;
}

Expand Down

0 comments on commit 30e759b

Please sign in to comment.