Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zongji is mixing up the column names #101

Open
blaart opened this issue Apr 9, 2019 · 3 comments
Open

Zongji is mixing up the column names #101

blaart opened this issue Apr 9, 2019 · 3 comments
Labels

Comments

@blaart
Copy link

blaart commented Apr 9, 2019

The query that is used for mapping the columns is mixing up the order of the columns. (Mysql v8.0) Please add 'ORDER BY ORDINAL_POSITION' to the query to fix this. (Worked for me..)
Like:
var tableInfoQueryTemplate = 'SELECT ' +
'COLUMN_NAME, COLLATION_NAME, CHARACTER_SET_NAME, ' +
'COLUMN_COMMENT, COLUMN_TYPE ' +
'FROM information_schema.columns ' + "WHERE table_schema='%s' AND table_name='%s'" +
'ORDER BY ORDINAL_POSITION';

@rodrigogs
Copy link

You can use my fork: https://github.com/rodrigogs/zongji

I solved a lot of bugs

@blaart
Copy link
Author

blaart commented May 15, 2019

You can use my fork: https://github.com/rodrigogs/zongji

I solved a lot of bugs

Thanks!!

@nevill nevill added the mysql8 label Nov 6, 2019
@ralexandr
Copy link

ralexandr commented Aug 5, 2020

Fixed in PR #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants