Skip to content

Handle MySQL zero dates with configurable SurrealDB mapping - #126

Merged
mumoshu merged 1 commit into
mainfrom
handle-mysql-zero-temporals
Jul 23, 2026
Merged

Handle MySQL zero dates with configurable SurrealDB mapping#126
mumoshu merged 1 commit into
mainfrom
handle-mysql-zero-temporals

Conversation

@mumoshu

@mumoshu mumoshu commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

MySQL and MariaDB allow zero dates like 0000-00-00, which used to break sync.

surreal-sync now carries those values through the pipeline distinctly from SQL NULL so transforms can still see what they were, and you can choose how SurrealDB stores them (none, null, or as a string) via sink config.

Intends to cover the second fix mentioned in #121

@mumoshu
mumoshu merged commit b41e146 into main Jul 23, 2026
9 checks passed
@mumoshu
mumoshu deleted the handle-mysql-zero-temporals branch July 23, 2026 02:09
@mumoshu mumoshu mentioned this pull request Jul 23, 2026
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

Successfully merging this pull request may close these issues.

1 participant