mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-21 22:44:08 +00:00
Add support for generated columns skipping 'GENERATED ALWAYS' keywords (#1058)
This commit is contained in:
parent
d0fce121ef
commit
da2296e6d6
4 changed files with 49 additions and 1 deletions
|
@ -215,6 +215,10 @@ fn parse_create_table_gencol() {
|
|||
|
||||
let sql_stored = "CREATE TABLE t1 (a INT, b INT GENERATED ALWAYS AS (a * 2) STORED)";
|
||||
sqlite_and_generic().verified_stmt(sql_stored);
|
||||
|
||||
sqlite_and_generic().verified_stmt("CREATE TABLE t1 (a INT, b INT AS (a * 2))");
|
||||
sqlite_and_generic().verified_stmt("CREATE TABLE t1 (a INT, b INT AS (a * 2) VIRTUAL)");
|
||||
sqlite_and_generic().verified_stmt("CREATE TABLE t1 (a INT, b INT AS (a * 2) STORED)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue