Repository navigation
v1.44.3
This patch release merges five fixes from @Twiink and cleans up the new regression tests.
Fixes
- #253
BuildWithFlavornow selects the multi-rowINSERTsyntax from the requested flavor instead of the builder's stored flavor. Cross-flavor builds no longer mix OracleINSERT ALLwith?placeholders or MySQL multi-rowVALUESwith:nplaceholders. - #254 Standalone
Condnamed arguments now account for the argument index base when looking up values. Reusing asql.Namedvalue no longer bindsnilor emits an unexpected positional placeholder. - #255
CopyWhereClausenow copies each clause's expression slice. Appending to the original or the copy no longer silently changes the other's SQL and arguments. - #256 SQL appended after
RETURNINGon a SQL ServerDELETEis preserved, restoringOUTPUT DELETED.id INTO ...beforeWHERE. - #257 Automatically referenced CTEs are placed in
USINGfor PostgreSQLDELETEinstead of the target list. The previousDELETE FROM a, boutput is invalid PostgreSQL syntax; the generatedDELETE FROM a USING bform was verified against PostgreSQL 17.10. This changes generated SQL for PostgreSQL CTE-based deletes.
Tests
All newly added regression tests were rewritten to use go-assert, matching the rest of the suite. go test, go vet and go test -race pass.