mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 13:58:15 +00:00
add support for MAX as a character length (#1038)
This commit is contained in:
parent
4cdaa40abe
commit
ff8312bfd8
5 changed files with 63 additions and 39 deletions
|
@ -2381,7 +2381,7 @@ fn parse_create_table() {
|
|||
vec![
|
||||
ColumnDef {
|
||||
name: "name".into(),
|
||||
data_type: DataType::Varchar(Some(CharacterLength {
|
||||
data_type: DataType::Varchar(Some(CharacterLength::IntegerLength {
|
||||
length: 100,
|
||||
unit: None,
|
||||
})),
|
||||
|
@ -2929,7 +2929,7 @@ fn parse_create_external_table() {
|
|||
vec![
|
||||
ColumnDef {
|
||||
name: "name".into(),
|
||||
data_type: DataType::Varchar(Some(CharacterLength {
|
||||
data_type: DataType::Varchar(Some(CharacterLength::IntegerLength {
|
||||
length: 100,
|
||||
unit: None,
|
||||
})),
|
||||
|
@ -3000,7 +3000,7 @@ fn parse_create_or_replace_external_table() {
|
|||
columns,
|
||||
vec![ColumnDef {
|
||||
name: "name".into(),
|
||||
data_type: DataType::Varchar(Some(CharacterLength {
|
||||
data_type: DataType::Varchar(Some(CharacterLength::IntegerLength {
|
||||
length: 100,
|
||||
unit: None,
|
||||
})),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue