Skip to content

support quoted fields#65

Open
AlanBell wants to merge 1 commit intoaspiers:masterfrom
AlanBell:master
Open

support quoted fields#65
AlanBell wants to merge 1 commit intoaspiers:masterfrom
AlanBell:master

Conversation

@AlanBell
Copy link
Copy Markdown

This supports quoted fields - but does require fields to be quoted in backticks - I think that is now a safe assumption. The objective is to support spaces in column names.
The other line processing regexes might need to be updated as they can now encounter backticks but this seemed to be sufficient for my database dumps.

This supports quoted fields - but does require fields to be quoted in backticks - I think that is now a safe assumption. The objective is to support spaces in column names.
The other line processing regexes might need to be updated as they can now encounter backticks but this seemed to be sufficient for my database dumps.
@AlanBell
Copy link
Copy Markdown
Author

relates to issue #43

@diegobill
Copy link
Copy Markdown

diegobill commented Mar 5, 2021

@AlanBell , I've applied your changing to the file /usr/share/perl5/MySQL/Diff/Table.pm and It looks like does not work:

$ mysql-schema-diff --host1=localhost --port1=3306 --user1=root --password1=XXX db1 --host2=localhost --port2=3306 --user2=root --password2=XXX db2
unparsable line in definition for table 'YYY':
id int(10) unsigned NOT NULL AUTO_INCREMENT at /usr/share/perl5/MySQL/Diff/Database.pm line 332.

Did you test your commit?

@AlanBell
Copy link
Copy Markdown
Author

AlanBell commented Mar 5, 2021

tested on my database, but didn't figure out the proper testing framework, never used perl before. I will have a look into it . . .

@diegobill
Copy link
Copy Markdown

quaternion7 added a commit to quaternion7/mysqldiff that referenced this pull request Jan 18, 2024
I merged the PRs aspiers#59 and aspiers#65 of the main branch while also cleaning them up a bit and double checking the code. It is still untested tho.
quaternion7 added a commit to quaternion7/mysqldiff that referenced this pull request Jan 18, 2024
My test failed like in the conversion on that PR. Going to try the fix mentioned there.
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.

2 participants