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

[Question] TableMapEvent.TableMetaData.ColumnNames returns null #20

Closed
weirdyang opened this issue May 15, 2021 · 7 comments
Closed

[Question] TableMapEvent.TableMetaData.ColumnNames returns null #20

weirdyang opened this issue May 15, 2021 · 7 comments

Comments

@weirdyang
Copy link

weirdyang commented May 15, 2021

Any hint on what could be the issue?

image

image

I'm using MySQL 8.0.23

þbin�� `��   y   }   � � 8.0.23                                            �� `� 
 �    � �   a ���   ����   


** �4 
(�Î~
¨�� `#�   �   œ   €         ]�Ùy9 `"�   O   ë                              �        �       ê
‡"bÂ�üh�—8� ¶��N9 `��   K   6�  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGINÿ¾�b9 `��   K   ��  € 3INSERT INTO test (id, name)
   VALUES
   ( 1, 3 )×ãd�9 `��   :   »�    X     � �test �test ����È  �� ��üÿ I`« 9 `��   *   å�    X     � � �ÿ �   �3—õ�W9 `��   �   ��    -       nõ_;~� `"�   O   S�                             ��       �       ¾´örbÂ�üx�—8� e+§o~� `��   K   ž�  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGINÍÓ±£~� `��   T   ò�  € <INSERT INTO test (id, name)
   VALUES
   ( 1, "asdasdas" )‡20Ë~� `��   :   ,�    X     � �test �test ����È  �� ��üÿ !œüc~� `��   1   ]�    X     � � �ÿ �   �asdasdasjÕŸ;~� `��   �   |�    s       rË×=­� `"�   O   Ë�                             ��       �       ‡5¼ubÂ�üx�—8� Õsh5­� `��   K   ��  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGIN0GKð­� `��   T   j�  € <INSERT INTO test (id, name)
   VALUES
   ( 1, "asdasdas" )BÛtô­� `��   :   ¤�    X     � �test �test ����È  �� ��üÿ Cî©­­� `��   1   Õ�    X     � � �ÿ �   �asdasdas“@Öî­� `��   �   ô�    v       rO�i½� `"�   O   C�                             ��       �       ¹|´vbÂ�üw�—8� bV!)½� `��   K   Ž�  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGIN�¶¾f½� `��   U   ã�  € =INSERT INTO test (id, name)
   VALUES
   ( 3333, "asdasd" )�öø�½� `��   :   ��    X     � �test �test ����È  �� ��üÿ jÙm¢½� `��   /   L�    X     � � �ÿ �
  �asdasdÈßØt½� `��   �   k�    w       Š6Ì(Â� `"�   O   º�                             ��       �       ���wbÂ�üw�—8� ËÔw¸Â� `��   K   ��  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGIN>ÝM¶Â� `��   U   Z�  € =INSERT INTO test (id, name)
   VALUES
   ( 3333, "asdasd" )�¸«ZÂ� `��   :   ”�    X     � �test �test ����È  �� ��üÿ �\Œ<Â� `��   /   Ã�    X     � � �ÿ �
  �asdasdüL¢�Â� `��   �   â�    y       y+œ�Ã� `"�   O   1�                             ��       �       þW�wbÂ�üw�—8� ¶c”µÃ� `��   K   |�  � �       �  �      �   E    ��std�! ! ÿ �ÿ test BEGINAWËÃ� `��   U   Ñ�  € =INSERT INTO test (id, name)
   VALUES
   ( 3333, "asdasd" )üjŒäÃ� `��   :   �	    X     � �test �test ����È  �� ��üÿ û‚E*Ã� `��   /   :	    X     � � �ÿ �
  �asdasdèlÔÃ� `��   �   Y	    z       Ыäà

Contents of my binlog.. could it be an encoding issue?

@weirdyang
Copy link
Author

fixed it by including binlog_row_metadata = full in my.cnf.

but now I'm getting Table metadata type 12 is not supported

@rusuly
Copy link
Owner

rusuly commented May 15, 2021

Hi,
I believe you need to configure
binlog_row_metadata = full

@weirdyang
Copy link
Author

Hi,
I believe you need to configure
binlog_row_metadata = full

thanks I did that, wrongly assumed v8 didn't need it.

are you able to help me with this exception? Table metadata type 12 is not supported

@rusuly
Copy link
Owner

rusuly commented May 15, 2021

Hi, just looking at the release notes for different MySQL 8 versions.
The library handles 11 metadata types and it looks like a new metadata type with id=12 was added in some MySQL 8.0.x version but I don't see it in the docs

You can download the source code and comment the line that throws the exception while I investigate the issue and parse the new metadata type

@rusuly
Copy link
Owner

rusuly commented May 15, 2021

Ok, I found that the COLUMN_VISIBILITY was added

@rusuly rusuly closed this as completed in e99cdd9 May 15, 2021
@rusuly
Copy link
Owner

rusuly commented May 15, 2021

Just fixed it and published a new version to the nuget

@weirdyang
Copy link
Author

that was really fast! thanks. I had cloned the repo and commented it out earlier. Much appreciated!

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

2 participants