Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsmart committed Apr 11, 2021
1 parent 5969fd9 commit 423e3b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ func escapeWithBraces(s string) string {

// escape escapes a string identifier.
func escape(s string, escBegin, escEnd byte) string {
// It would be nice to know when not to escape,
// but a regex (e.g. "^[a-zA-Z_][a-zA-Z0-9_#@$]*$")
// doesn't solve this, because it would not catch keywords.
// Which is why we simply always escape identifiers.

// TODO(js) Correct handling of backslash escaping of identifiers needs
// further investigation: different dialects look to handle it differently
// - removed for now.
Expand Down

0 comments on commit 423e3b1

Please sign in to comment.