Skip to content

Commit 96ab09b

Browse files
author
aleksei.p
committed
update
1 parent 5613dfe commit 96ab09b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/sqlparser_mssql.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ fn parse_create_table_with_invalid_options() {
912912
fn parse_create_table_with_identity_column() {
913913
let with_column_options = [
914914
(
915-
r#"CREATE TABLE [mytable] ([columnA] INT IDENTITY NOT NULL)"#,
915+
r#"CREATE TABLE mytable (columnA INT IDENTITY NOT NULL)"#,
916916
vec![
917917
ColumnOptionDef {
918918
name: None,
@@ -925,7 +925,7 @@ fn parse_create_table_with_identity_column() {
925925
],
926926
),
927927
(
928-
r#"CREATE TABLE [mytable] ([columnA] INT IDENTITY(1, 1) NOT NULL)"#,
928+
r#"CREATE TABLE mytable (columnA INT IDENTITY(1, 1) NOT NULL)"#,
929929
vec![
930930
ColumnOptionDef {
931931
name: None,
@@ -953,7 +953,7 @@ fn parse_create_table_with_identity_column() {
953953

954954
for (sql, column_options) in with_column_options {
955955
assert_eq!(
956-
ms().verified_stmt(sql),
956+
ms_and_generic().verified_stmt(sql),
957957
Statement::CreateTable(CreateTable {
958958
or_replace: false,
959959
temporary: false,
@@ -964,12 +964,12 @@ fn parse_create_table_with_identity_column() {
964964
volatile: false,
965965
name: ObjectName(vec![Ident {
966966
value: "mytable".to_string(),
967-
quote_style: Some('['),
967+
quote_style: None,
968968
},],),
969969
columns: vec![ColumnDef {
970970
name: Ident {
971971
value: "columnA".to_string(),
972-
quote_style: Some('['),
972+
quote_style: None,
973973
},
974974
data_type: Int(None,),
975975
collation: None,

0 commit comments

Comments
 (0)