You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new tests use one setting (batch_size 2, max_column_size 64), read one row each, read no text and never fill more than one batch. CI skips both on DuckDB (test-driver.sh), so only PostgreSQL runs buffered mode. The old test reads 450 rows with text up to 449 characters under a 450 limit
Binary data reads back the same with and without a column size limit
Buffered text encoding follow-up from #24. With psqlODBC and max_column_size(Some(64)), SELECT CAST(chr(233) AS VARCHAR(16)) returns é in the default UTF-8 session, including via PostgreSQL ANSI. Switching the buffered binding from SQL_C_CHAR to SQL_C_WCHAR as proposed by #24 breaks that ANSI query with 07006 from SQLFetch. With an explicit SET client_encoding TO LATIN1, current buffered reads replace é with �, but the proposed wide binding still does not return é on either psqlODBC variant. Keep the narrow path until an affected driver and a compatible correction are covered by regression tests.
Activity
sqlx-oldapi#1lovasoa commentedon Nov 27, 2026
Buffered text encoding follow-up from #24. With psqlODBC and
max_column_size(Some(64)),SELECT CAST(chr(233) AS VARCHAR(16))returnséin the default UTF-8 session, including via PostgreSQL ANSI. Switching the buffered binding fromSQL_C_CHARtoSQL_C_WCHARas proposed by #24 breaks that ANSI query with07006fromSQLFetch. With an explicitSET client_encoding TO LATIN1, current buffered reads replaceéwith�, but the proposed wide binding still does not returnéon either psqlODBC variant. Keep the narrow path until an affected driver and a compatible correction are covered by regression tests.