Skip to content

Commit 33092cc

Browse files
tomharmonms705
authored andcommitted
Fix minor bugs
Thanks Sam @SamedhG
1 parent 4ee993b commit 33092cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/create.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl fmt::Display for CreateViewStatement {
102102
pub fn index_col_name(i: &[u8]) -> IResult<&[u8], (Column, Option<u16>, Option<OrderType>)> {
103103
let (remaining_input, (column, len_u8, order)) = tuple((
104104
terminated(column_identifier_no_alias, multispace0),
105-
opt(delimited(tag("("), digit1, tag("("))),
105+
opt(delimited(tag("("), digit1, tag(")"))),
106106
opt(order_type),
107107
))(i)?;
108108
let len = len_u8.map(|l| u16::from_str(str::from_utf8(l).unwrap()).unwrap());
@@ -151,7 +151,7 @@ fn full_text_key(i: &[u8]) -> IResult<&[u8], TableKey> {
151151
fn primary_key(i: &[u8]) -> IResult<&[u8], TableKey> {
152152
let (remaining_input, (_, _, columns, _)) = tuple((
153153
tag_no_case("primary key"),
154-
multispace1,
154+
multispace0,
155155
delimited(
156156
tag("("),
157157
delimited(multispace0, index_col_list, multispace0),

0 commit comments

Comments
 (0)