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

xml2sql ignores attributes. this can lead to invalid sql #46

Open
manzikki opened this issue Nov 8, 2018 · 0 comments
Open

xml2sql ignores attributes. this can lead to invalid sql #46

manzikki opened this issue Nov 8, 2018 · 0 comments

Comments

@manzikki
Copy link

manzikki commented Nov 8, 2018

Example:
<root> <c> <field attr="a">hello</field> <field attr="b">hello</field> </c> </root>
is converted to:
INSERT INTO c (field,field)
VALUES
("hello", "hello");

Proposed fix attached (xml2sql.py)

fix.txt

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