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

Parsing negative TIME values is not supported #34

Open
Benuhx opened this issue Apr 9, 2024 · 0 comments
Open

Parsing negative TIME values is not supported #34

Benuhx opened this issue Apr 9, 2024 · 0 comments

Comments

@Benuhx
Copy link

Benuhx commented Apr 9, 2024

Hi @rusuly ,

we re using MySQL 8 with MySqlCdc v2.0.1 (so the latest Version with .NET Framework support)

Sometimes we re getting an exception while reading the binlog
System.NotSupportedException: Parsing negative TIME values is not supported in this version

I saw your comment in the ParseTime2 method in ColumnParser class. But is there any way to implement this? We re using negative time values in our database sometimes

Full stack is
Exception: System.NotSupportedException: Parsing negative TIME values is not supported in this version bei MySqlCdc.Columns.ColumnParser.ParseTime2(PacketReader& reader, Int32 metadata) bei MySqlCdc.Parsers.RowEventParser.ParseCell(PacketReader& reader, Int32 columnType, Int32 metadata) bei MySqlCdc.Parsers.RowEventParser.ParseRow(PacketReader& reader, TableMapEvent tableMap, Boolean[] columnsPresent, Int32 cellsIncluded) bei MySqlCdc.Parsers.DeleteRowsEventParser.ParseDeleteRows(PacketReader& reader, Int64 tableId, Boolean[] columnsPresent) bei MySqlCdc.Parsers.DeleteRowsEventParser.ParseEvent(EventHeader header, PacketReader& reader) bei MySqlCdc.Events.EventDeserializer.DeserializeEvent(PacketReader& reader) bei MySqlCdc.Network.EventStreamReader.ReadPacket(ReadOnlySequence1 buffer)
bei MySqlCdc.Network.EventStreamChannel.TryReadPacket(ReadOnlySequence1 buffer) bei MySqlCdc.Network.EventStreamChannel.d__4.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore1.GetResult(Int16 token)
bei MySqlCdc.Network.EventStreamChannel.d__4.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
bei System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable1.ConfiguredValueTaskAwaiter.GetResult() bei MySqlCdc.BinlogClient.d__13.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei MySqlCdc.BinlogClient.d__13.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore1.GetResult(Int16 token)
bei MySqlCdc.BinlogClient.d__13.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
`

Otherwise the library works really well for us :)

Thanks!

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

1 participant