-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: mattn/go-sqlite3
base: v1.14.41
head repository: mattn/go-sqlite3
compare: v1.14.42
- 8 commits
- 1 file changed
- 1 contributor
Commits on Apr 7, 2026
-
Configuration menu - View commit details
-
Copy full SHA for efa9b1c - Browse repository at this point
Copy the full SHA efa9b1cView commit details
Commits on Apr 8, 2026
-
check stmtCacheSize before acquiring mutex in takeCachedStmt
stmtCacheSize is immutable after connection open, so checking it before the lock avoids mutex overhead when cache is not enabled.
Configuration menu - View commit details
-
Copy full SHA for 061c2a5 - Browse repository at this point
Copy the full SHA 061c2a5View commit details -
remove redundant stmtCacheSize check in putCachedStmt
When stmtCacheSize <= 0, stmtCacheCount >= stmtCacheSize is always true, so the explicit check is unnecessary.
Configuration menu - View commit details
-
Copy full SHA for 325cb8d - Browse repository at this point
Copy the full SHA 325cb8dView commit details -
do not bail out on finalize error in closeCachedStmtsLocked
Finalize all cached statements even if one fails. Leaving a finalized statement in the cache map would be a use-after-finalize bug per SQLite documentation.
Configuration menu - View commit details
-
Copy full SHA for e9f47da - Browse repository at this point
Copy the full SHA e9f47daView commit details -
simplify prepareWithCache to call prepare instead of duplicating logic
prepareWithCache now delegates to prepare and sets cacheKey afterward, removing the useCache boolean parameter.
Configuration menu - View commit details
-
Copy full SHA for 0e58fa4 - Browse repository at this point
Copy the full SHA 0e58fa4View commit details -
move reset/clear into putCachedStmt and always finalize on failure
This avoids an unnecessary reset when the cache is full, guarantees a statement cannot enter the cache without being reset/cleared, and fixes a leak where sqlite3_finalize was not called when reset failed.
Configuration menu - View commit details
-
Copy full SHA for 867dcbf - Browse repository at this point
Copy the full SHA 867dcbfView commit details -
document that _stmt_cache_size is per connection
Clarify that each connection in the sql.DB pool maintains its own independent statement cache.
Configuration menu - View commit details
-
Copy full SHA for e302e5c - Browse repository at this point
Copy the full SHA e302e5cView commit details -
Merge pull request #1387 from mattn/codex/stmt-cache
[codex] add opt-in statement cache
Configuration menu - View commit details
-
Copy full SHA for 5df13a0 - Browse repository at this point
Copy the full SHA 5df13a0View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.14.41...v1.14.42