Skip to content

Commit 76a23ac

Browse files
committed
auto_increment support
1 parent 7a9f01a commit 76a23ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib_sql_parser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,11 @@ function parse_field($tokens){
602602
}
603603

604604
# [AUTO_INCREMENT]
605+
if (StrToUpper($tokens[0]) == 'AUTO_INCREMENT'){
606+
$f['auto_increment'] = true;
607+
array_shift($tokens);
608+
}
609+
605610
# [UNIQUE [KEY] | [PRIMARY] KEY]
606611
# [COMMENT 'string']
607612
# [COLUMN_FORMAT {FIXED|DYNAMIC|DEFAULT}]

0 commit comments

Comments
 (0)