mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-16 20:20:15 +00:00
PostgreSQL: GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY and GENERATED ALWAYS AS ( generation_expr ) support (#832)
* GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) basic impl - test are failing. * PostgreSQL GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) and GENERATED ALWAYS AS ( generation_expr ) STORED implementation.
This commit is contained in:
parent
4ff3aeb040
commit
a8a8e65b7c
17 changed files with 350 additions and 57 deletions
|
@ -596,7 +596,7 @@ impl<'a> Tokenizer<'a> {
|
|||
let word = self.tokenize_word(ch, chars);
|
||||
|
||||
// TODO: implement parsing of exponent here
|
||||
if word.chars().all(|x| ('0'..='9').contains(&x) || x == '.') {
|
||||
if word.chars().all(|x| x.is_ascii_digit() || x == '.') {
|
||||
let mut inner_state = State {
|
||||
peekable: word.chars().peekable(),
|
||||
line: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue