дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
The data grid shows a binary value as 0x... hex, and a submitted edit sent that text back as a quoted string: a row with a binary primary key could not be changed or deleted (SQLite and SQL Server matched no row or refused the varchar-to-varbinary conversion, MySQL silently changed nothing), and an edited binary value was stored as the bytes of its hex text. Submitting edits now looks up the table's binary columns when an edited key or value is 0x... hex, and writes those values as bytes (X'...' on SQLite and MySQL, 0x... on SQL Server); other text stays quoted, and the console's Output log shows the same literals. An edit that matches no row now fails on MySQL too (sqlx requests CLIENT_FOUND_ROWS, so a matched but unchanged row still counts), and a failed batch rolls its transaction back before the connection returns to the pool, discarding the connection if the rollback fails. Co-authored-by: ntbang0901 <[email protected]>