mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 07:24:10 +00:00
feat: Add support for MSSQL table options (#1414)
This commit is contained in:
parent
cb0c511b05
commit
b9e7754886
7 changed files with 523 additions and 65 deletions
|
@ -461,16 +461,16 @@ fn parse_create_table_with_defaults() {
|
|||
assert_eq!(
|
||||
with_options,
|
||||
vec![
|
||||
SqlOption {
|
||||
name: "fillfactor".into(),
|
||||
SqlOption::KeyValue {
|
||||
key: "fillfactor".into(),
|
||||
value: Expr::Value(number("20"))
|
||||
},
|
||||
SqlOption {
|
||||
name: "user_catalog_table".into(),
|
||||
SqlOption::KeyValue {
|
||||
key: "user_catalog_table".into(),
|
||||
value: Expr::Value(Value::Boolean(true))
|
||||
},
|
||||
SqlOption {
|
||||
name: "autovacuum_vacuum_threshold".into(),
|
||||
SqlOption::KeyValue {
|
||||
key: "autovacuum_vacuum_threshold".into(),
|
||||
value: Expr::Value(number("100"))
|
||||
},
|
||||
]
|
||||
|
@ -4482,12 +4482,12 @@ fn parse_create_table_with_options() {
|
|||
Statement::CreateTable(CreateTable { with_options, .. }) => {
|
||||
assert_eq!(
|
||||
vec![
|
||||
SqlOption {
|
||||
name: "foo".into(),
|
||||
SqlOption::KeyValue {
|
||||
key: "foo".into(),
|
||||
value: Expr::Value(Value::SingleQuotedString("bar".into())),
|
||||
},
|
||||
SqlOption {
|
||||
name: "a".into(),
|
||||
SqlOption::KeyValue {
|
||||
key: "a".into(),
|
||||
value: Expr::Value(number("123")),
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue