Merge 'Handle single, double and unquoted strings in values clause' from Mikaël Francoeur

I'm not sure how much this will clash with @TcMits's parser rewrite,
hopefully not too much. If it does and we eventually have to remove it,
at least we'll have two new regression tests.
Closes https://github.com/tursodatabase/turso/issues/2484

Closes #2499
This commit is contained in:
Jussi Saurio
2025-08-11 21:08:15 +03:00
committed by GitHub
6 changed files with 35 additions and 11 deletions

View File

@@ -1178,6 +1178,14 @@ impl Name {
_ => Name::Ident(s.to_string()),
}
}
/// Checks if a name represents a double-quoted string that should get fallback behavior
pub fn is_double_quoted(&self) -> bool {
if let Self::Quoted(ident) = self {
return ident.starts_with("\"");
}
false
}
}
struct QuotedIterator<'s>(Bytes<'s>, u8);