Skip to content

Commit

Permalink
Made tableparser testeable
Browse files Browse the repository at this point in the history
  • Loading branch information
percona-csalguero committed Jan 23, 2018
1 parent e9ca1b5 commit 0eeaa98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableparser/tableparser.go
Expand Up @@ -158,7 +158,7 @@ func (t *Table) parse() error {
// | | |
re := regexp.MustCompile(`^(.*?)(?:\((.*?)\)(.*))?$`)

query := "SELECT * FROM `information_schema`.`COLUMNS` WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ?"
query := "SELECT * FROM `information_schema`.`COLUMNS` WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ? ORDER BY ORDINAL_POSITION"

constraints := constraintsAsMap(t.Constraints)

Expand Down

0 comments on commit 0eeaa98

Please sign in to comment.