-
v0.3.0 Stable
released this
2026-02-08 01:05:42 +00:00 | 41 commits to main since this releasev0.3.0
This release resolves all 6 open issues, improving compatibility between PostgreSQL SQL and the underlying SQLite engine.
Bug Fixes
- Fix SERIAL PRIMARY KEY generating duplicate PRIMARY KEY in SQLite (#1) —
SERIAL PRIMARY KEYDDL no longer emits a redundantPRIMARY KEYconstraint that caused SQLite errors. (b09e1e8) - Fix DEFAULT CURRENT_TIMESTAMP not wrapped in parentheses for SQLite (#2) —
DEFAULT CURRENT_TIMESTAMPis now correctly parenthesized so SQLite accepts it. (1c85a64) - Coerce SQLite timestamp strings to time.Time on Scan (#3) — Timestamp values returned by SQLite are now automatically coerced to
time.Timewhen scanned, matching PostgreSQL driver behavior. (3b50013) - Fix NULLS FIRST/LAST for table-qualified and expression columns (#4) —
ORDER BYwithNULLS FIRST/NULLS LASTnow works correctly for table-qualified columns (e.g.,t.col) and complex expressions. (fa1c61f)
Improvements
- Verify INSERT RETURNING works via SQLite 3.35+ (#5) — Added tests confirming that
INSERT ... RETURNINGis supported natively by the bundled SQLite version (3.35+). (7f362eb) - Add ALTER TABLE ADD COLUMN IF NOT EXISTS support (#6) —
ALTER TABLE ... ADD COLUMN IF NOT EXISTSis now translated to SQLite-compatible SQL. (1143a01)
Full Changelog: https://github.com/drummonds/go-postgres/compare/v0.2.1...v0.3.0
Migrated from the GitHub mirror (https://github.com/drummonds/go-postgres/releases/tag/v0.3.0).
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Fix SERIAL PRIMARY KEY generating duplicate PRIMARY KEY in SQLite (#1) —