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

Column name strings get misinterpreted as column type strings #8

Open
yongjunj opened this issue Dec 30, 2015 · 0 comments
Open

Column name strings get misinterpreted as column type strings #8

yongjunj opened this issue Dec 30, 2015 · 0 comments

Comments

@yongjunj
Copy link

Thank you for your work on pg2mysql - it's been a godsend on a number of occasions.

This is a minor issue, but it seems that column name strings get misinterpreted as column type strings, producing an invalid SQL output. Creating an issue here just for reference.

Input:

...
CREATE TABLE test (
    integer1    text,
    integer2    text
);
...

Expected output:

CREATE TABLE test (
    integer1    text,
    integer2    text
) TYPE=MyISAM;

Actual output:

CREATE TABLE test (
    int(11)1    text,
    int(11)2    text
) TYPE=MyISAM;
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

No branches or pull requests

1 participant