We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061c2a5 commit 325cb8dCopy full SHA for 325cb8d
1 file changed
sqlite3.go
@@ -1941,7 +1941,7 @@ func (c *SQLiteConn) putCachedStmt(s *SQLiteStmt) bool {
1941
c.mu.Lock()
1942
defer c.mu.Unlock()
1943
1944
- if c.db == nil || c.stmtCacheSize <= 0 || c.stmtCacheCount >= c.stmtCacheSize {
+ if c.db == nil || c.stmtCacheCount >= c.stmtCacheSize {
1945
return false
1946
}
1947
c.stmtCache[s.cacheKey] = append(c.stmtCache[s.cacheKey], s)
0 commit comments