Open
Description
The following is a valid MS Sql query, but cannot ne parsed due to the varbinary
implementation.
Variable character-based columns, nvarchar
and varchar
, use a union type CharacterLength
type that allows for either IntegerLength
or Max
values. The varbinary
implementation needs a similar union, such as BinaryLength
(reusing CharacterLength
seems to have a naming mismatch).
#[test]
fn parse_ms_sql_varbinary_max(){
let sql = "CREATE TABLE example(VarBinaryMaxCol varbinary(max) not null);";
let parsed = ms().parse_sql_statements(sql);
assert!(parsed.is_ok());
}
Metadata
Metadata
Assignees
Labels
No labels