diff --git a/src/ast/data_type.rs b/src/ast/data_type.rs index 33e153179..a602e247d 100644 --- a/src/ast/data_type.rs +++ b/src/ast/data_type.rs @@ -274,7 +274,7 @@ pub enum DataType { String(Option), /// A fixed-length string e.g [ClickHouse][1]. /// - /// [1] https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring + /// [1]: https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring FixedString(u64), /// Bytea Bytea, diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 4f1bf7430..5194efd86 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -2236,9 +2236,10 @@ impl<'a> Parser<'a> { /// ```sql /// [field_name] field_type /// ``` - /// [1] https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type - /// [2] https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested - /// [3] https://clickhouse.com/docs/en/sql-reference/data-types/tuple + /// + /// [1]: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type + /// [2]: https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested + /// [3]: https://clickhouse.com/docs/en/sql-reference/data-types/tuple fn parse_struct_field_def( &mut self, allow_anonymous: bool, diff --git a/tests/sqlparser_clickhouse.rs b/tests/sqlparser_clickhouse.rs index 9007e61e5..ab1dbf68d 100644 --- a/tests/sqlparser_clickhouse.rs +++ b/tests/sqlparser_clickhouse.rs @@ -263,9 +263,10 @@ fn parse_create_table_with_nullable() { name: Ident::new("d"), data_type: DataType::Date32, collation: None, - options: vec![ - ColumnOptionDef{name: None, option: ColumnOption::Null} - ], + options: vec![ColumnOptionDef { + name: None, + option: ColumnOption::Null + }], }, ] );