mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-24 07:54:06 +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
|
@ -127,7 +127,7 @@ fn parse_create_procedure() {
|
|||
value: "@bar".into(),
|
||||
quote_style: None
|
||||
},
|
||||
data_type: DataType::Varchar(Some(CharacterLength {
|
||||
data_type: DataType::Varchar(Some(CharacterLength::IntegerLength {
|
||||
length: 256,
|
||||
unit: None
|
||||
}))
|
||||
|
@ -431,6 +431,11 @@ fn parse_like() {
|
|||
chk(true);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_cast_varchar_max() {
|
||||
ms_and_generic().verified_expr("CAST('foo' AS VARCHAR(MAX))");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_similar_to() {
|
||||
fn chk(negated: bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue