feat: Add support for MSSQL table options (#1414)

This commit is contained in:
Simon Sawert 2024-09-11 19:09:41 +02:00 committed by GitHub
parent cb0c511b05
commit b9e7754886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 523 additions and 65 deletions

View file

@ -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")),
},
],