sqlx-record/src
Michael Netshipise 6ed2401be1 fix: use Value-based binding in UpdateForm for proper Option<T> handling
When UpdateForm wraps fields that are already Option<T>, it creates
nested Options (Option<Option<T>>). The old bind_form_values method
bound these directly as &Option<T>, which caused MySQL "malform packet"
errors for Uuid -> BINARY(16) conversions.

Now both bind_form_values and bind_all_values use update_stmt_with_values()
which properly converts values through the Value enum:
- Some(None) -> Value::Null
- Some(Some(v)) -> Value::T(v)

This preserves the three-state semantics:
- None: don't include field in UPDATE
- Some(None): SET column = NULL
- Some(Some(v)): SET column = value

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 18:13:07 +02:00
..
conn_provider.rs Release v0.2.0 with UpdateExpr, ConnProvider, MCP server, and skills 2026-01-28 16:21:14 +02:00
filter.rs Add update_by_filter for bulk updates by filter conditions 2026-01-29 20:55:10 +02:00
helpers.rs Rename to sqlx-record with multi-database support 2026-01-28 15:31:24 +02:00
lib.rs Release v0.3.0 with soft deletes, timestamps, batch ops, pagination, transactions 2026-01-28 16:36:24 +02:00
models.rs Import entity-changes project 2026-01-28 15:19:38 +02:00
pagination.rs Release v0.3.0 with soft deletes, timestamps, batch ops, pagination, transactions 2026-01-28 16:36:24 +02:00
repositories.rs Rename to sqlx-record with multi-database support 2026-01-28 15:31:24 +02:00
transaction.rs Release v0.3.0 with soft deletes, timestamps, batch ops, pagination, transactions 2026-01-28 16:36:24 +02:00
value.rs fix: use Value-based binding in UpdateForm for proper Option<T> handling 2026-01-30 18:13:07 +02:00