-
-
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
MySQL Emoji character replicate "?" for PostgreSQL #157
Comments
I'll try to install mysql 8 and check what's going on. |
CREATE TABLE |
The problem is that using the configuration
To fix this change the configuration to It seems you are trying to create the file with the mysql charset so these charsets are not valid. |
@splainez |
Describe the bug
A clear and concise description of what the bug is.
Source Data (MySQL v8)
mysql> select * from test;
+----+------+
| id | nm |
+----+------+
| 2 | abc |
| 3 | def |
| 4 | def |
| 5 | 😥 |
+----+------+
init_replica & start_replica
Target Data (PostgreSQL v13)
postgres> select * from test;
id | nm
----+-----
2 | abc
3 | def
4 | def
5 | ? <- Emoji character print "?"
Inset new Emoji on MySQL
mysql> insert into test values(6, '😥');
mysql> select * from test;;
+----+------+
| id | nm |
+----+------+
| 2 | abc |
| 3 | def |
| 4 | def |
| 5 | 😥 |
| 6 | 😥 |
+----+------+
PostgreSQL print correct Emoji.
postgres> select * from test;
id | nm
----+-----
2 | abc
3 | def
4 | def
5 | ?
6 | 😥
I tried file and direct options when execute init_replica. but both option has same problem.
After updated id=5 row on MySQL, then PostgreSQL print Emoji correctly.
mysql> alter table test add col varchar(10);
mysql> update test set col = 'help' where id = 5;
mysql> select * from test;
+----+------+------+
| id | nm | col |
+----+------+------+
| 2 | abc | NULL |
| 3 | def | NULL |
| 4 | def | NULL |
| 5 | 😥 | help |
| 6 | 😥 | NULL |
+----+------+------+
postgres> select * from test;
id | nm | col
----+-----+--------
2 | abc | (null)
3 | def | (null)
4 | def | (null)
6 | 😥 | (null)
5 | 😥 | help
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
![image](https://user-images.githubusercontent.com/130650337/231714642-75cd6234-986d-44af-ba15-171691ea7eb2.png)
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: