-
-
Notifications
You must be signed in to change notification settings - Fork 84
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 instead of DEFAULT value in migration #74
Comments
As I read here https://stackoverflow.com/questions/33344587/insert-0000-00-00-000000-datetime-from-mysql-to-postgresql Postgres can't work with |
Hi, is this happening during the init replica or during the replication process? |
It is init step |
I had a similar issue fixed in a previous issue, the #16 . |
Thanks. |
the row with error should be skipped. if the entire init_replica is aborted then it is definitely a bug :) |
No, init_replica running well. Just wanted to insert incorrect data and fix it with sed or smth like that :( Nvm, waiting for 2.0.8 :) |
Once more, I've found that pg_chameleon in connection to the source DB and making SELECT queries like:
Can you explain me the reason for these selects? I've placed all tables expect 1 in skip_tables in configuration file, also table 'res_formats_positions_v2_2018022201' is in skip_tables. P.S. Newbie in Github issues. If my questions are off-topic, let me pls know where can I find an answer on my question, all how can I write you in email/telegram/etc. |
mmm interesting. is this happening at init_replica or during the replica? In theory the having tables in skip tables should not generate any query. |
It is going on during the replica_start running. |
I will have a look, thanks. |
Hi, can you open a new ticket for the information_schema issue? Thanks |
never mind the ticked. The method mysql_engine.get_table_type map executes a query on all tables present in the replicated schemas ignoring the skip_tables. This happens every time the replica stream is initiated and is required for mapping the binary data which need to be hexified. I agree that skip tables should be used and I can work on a fix if this is source of concern. |
regarding the date, there is a PR on the mysql replica library, waiting since September 2017. The moment this fix is available in the replica library I'll be able to sort out the problem properly. |
I'm closing the ticket for now. I'll look after the problem when the PR will be merged in the mysql replica library. |
@the4thdoctor Hi, can I initiate the reopening of this issue? I am currently setting up MySQL → PostgreSQL replication and there are a lot of date type fields in the source database with the default value |
I'm reopening the issue and I'll have a look asap. |
Hi, I have a table in MySQL with:
but when the default value is used in MySQL, pg_chameleon rewrite it as Null, so get an error:
The real data:
Can you help me with that? If there a way to fix an error?
The text was updated successfully, but these errors were encountered: