Skip to content

Fix mysql query#176

Merged
zhouzhuojie merged 1 commit into
masterfrom
zz/fix-mysql-query
Oct 9, 2018
Merged

Fix mysql query#176
zhouzhuojie merged 1 commit into
masterfrom
zz/fix-mysql-query

Conversation

@zhouzhuojie
Copy link
Copy Markdown
Collaborator

Fix error

{
"message": "cannot find flag entity types. err:Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key ASC' at line 1"
}

Looks like Order("key ASC") was not supported in gorm to mysql driver. Since we don't really care about the orders, so just a queryset query is enough

@zhouzhuojie zhouzhuojie merged commit 93674ef into master Oct 9, 2018
@zhouzhuojie zhouzhuojie deleted the zz/fix-mysql-query branch October 9, 2018 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant