summaryrefslogtreecommitdiffstats
path: root/sqlglotrs/src/tokenizer.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:14:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:14:01 +0000
commit705d595e4873c2b13dd98d4614ca729f4d4ed81c (patch)
treed42152d0d58a859ebf2eff8e5688f988f376703d /sqlglotrs/src/tokenizer.rs
parentReleasing debian version 25.26.0-1. (diff)
downloadsqlglot-705d595e4873c2b13dd98d4614ca729f4d4ed81c.tar.xz
sqlglot-705d595e4873c2b13dd98d4614ca729f4d4ed81c.zip
Merging upstream version 25.29.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglotrs/src/tokenizer.rs')
-rw-r--r--sqlglotrs/src/tokenizer.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlglotrs/src/tokenizer.rs b/sqlglotrs/src/tokenizer.rs
index 6df3bfb..beff96e 100644
--- a/sqlglotrs/src/tokenizer.rs
+++ b/sqlglotrs/src/tokenizer.rs
@@ -609,8 +609,11 @@ impl<'a> TokenizerState<'a> {
let mut text = String::from("");
loop {
+ let mut new_identifier_escapes;
let escapes = if use_identifier_escapes {
- &self.settings.identifier_escapes
+ new_identifier_escapes = self.settings.identifier_escapes.clone();
+ new_identifier_escapes.extend(delimiter.chars());
+ &new_identifier_escapes
} else {
&self.settings.string_escapes
};