-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
NULL values get converted to zero when replicating mysql table #39
Comments
Hi @avokicchi, I'll review the issue and get back to you as soon as possible. Thanks! |
Hi @osalvador, Firstly, I would like to thank you for such a simple to use great tool. I had similar issues while migrating data from PostgreSQL to MySQL.
Looks like the issue with NULL is fixed and closed. Will this also fix while migrating from postgresql to mysql? If yes, Can you please let me know when it will be released? Else, is it better to create a new issue. Appreciate all the help! |
Hi @gurujsprasad and @avokicchi, I've created a new release that fixes this issue. You can download on the releases section: https://github.com/osalvador/ReplicaDB/releases/tag/v0.11.1 This patch should fix all replications when the sink database is a MySQL, regardless of the source type. Thanks! |
Hi @osalvador, I got the latest release and ran it on postgresql to mysql db migration, NULL issues are resolved. But true or false from bool column in postgre is saved as value 0 tinyint in mysql. It should 0 for false and 1 for true. Can you please check on this? Not sure if I am going wrong in any step. Thank you. |
Hi @gurujsprasad, You should cast your values if source and sink tables do not have the same structure. You can create your own custom query to convert the Boolean column into your required data type. Does this solve your requirements? Regards! |
Hi @osalvador, Yep, this solves the requirement. I was following the same. But a confirmation from you is great! Thank you |
I'm having an issue in which it appears that NULL values are not being copied properly when replicating a table. This is my replicadb.conf:
The source and sink are both MySQL 8 servers with identical database structure. Only the data differs. Perhaps of interest, sql_mode is set to "".
This is the database structure:
This is the data present at the source table:
After replication, the data present at the sink table is as follows:
As you can see, all NULL values are turned to zeros.
I have played around with various nullString and quoteMode values with no luck. Was wondering if I am simply doing something wrong, or that this is a known issue?
The text was updated successfully, but these errors were encountered: