Skip to content

Commit 6407369

Browse files
chore(deps): Bump modernc.org/sqlite from 1.50.0 to 1.50.1 (#504)
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.50.0 to 1.50.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://gitlab.com/cznic/sqlite/blob/master/CHANGELOG.md">modernc.org/sqlite's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <ul> <li> <p>2026-05-10 v1.50.1:</p> <ul> <li>Upgrade to <a href="https://sqlite.org/releaselog/3_53_1.html">SQLite 3.53.1</a>.</li> </ul> </li> <li> <p>2026-04-24 v1.50.0:</p> <ul> <li>Upgrade to sqlite-vec <a href="https://github.com/asg017/sqlite-vec/releases/tag/v0.1.9">v0.1.9</a>.</li> <li>Introduce <code>ColumnInfo</code>, enabling dynamic query builders and ORMs to retrieve underlying SQLite C-API metadata (<code>OriginName</code>, <code>TableName</code>, <code>DatabaseName</code>, and <code>DeclType</code>).</li> <li>This feature is exposed via the idiomatic <code>database/sql</code> escape hatch <code>(*sql.Conn).Raw()</code>, avoiding custom statement handles and keeping the standard library workflow intact.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/113">#113</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/113">https://gitlab.com/cznic/sqlite/-/merge_requests/113</a>), thanks Josh Bleecher Snyder!</li> </ul> </li> <li> <p>2026-04-17 v1.49.0: Upgrade to <a href="https://sqlite.org/releaselog/3_53_0.html">SQLite 3.53.0</a>.</p> <ul> <li>Added <code>-DSQLITE_ENABLE_DBPAGE_VTAB</code> to the transpilation. See <a href="https://www.sqlite.org/dbpage.html">&quot;The SQLITE_DBPAGE Virtual Table&quot;</a> for details.</li> </ul> </li> <li> <p>2026-04-06 v1.48.2:</p> <ul> <li>Fix ABI mapping mismatch in the pre-update hook trampoline that caused silent truncation of large 64-bit RowIDs.</li> <li>Ensure the Go trampoline signature correctly aligns with the public <code>sqlite3_preupdate_hook</code> C API, preventing data corruption for high-entropy keys (e.g., Snowflake IDs).</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/98">#98</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/98">https://gitlab.com/cznic/sqlite/-/merge_requests/98</a>), thanks Josh Bleecher Snyder!</li> <li>Fix the memory allocator used in <code>(*conn).Deserialize</code>.</li> <li>Replace <code>tls.Alloc</code> with <code>sqlite3_malloc64</code> to prevent internal allocator corruption. This ensures the buffer is safely owned by SQLite, which may resize or free it due to the <code>SQLITE_DESERIALIZE_RESIZEABLE</code> and <code>SQLITE_DESERIALIZE_FREEONCLOSE</code> flags.</li> <li>Prevent a memory leak by properly freeing the allocated buffer if fetching the main database name fails before handing ownership to SQLite.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/100">#100</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/100">https://gitlab.com/cznic/sqlite/-/merge_requests/100</a>), thanks Josh Bleecher Snyder!</li> <li>Fix <code>(*conn).Deserialize</code> to explicitly reject <code>nil</code> or empty byte slices.</li> <li>Prevent silent database disconnection and connection pool corruption caused by SQLite's default behavior when <code>sqlite3_deserialize</code> receives a 0-length buffer.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/101">#101</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/101">https://gitlab.com/cznic/sqlite/-/merge_requests/101</a>), thanks Josh Bleecher Snyder!</li> <li>Fix <code>commitHookTrampoline</code> and <code>rollbackHookTrampoline</code> signatures by removing the unused <code>pCsr</code> parameter.</li> <li>Aligns internal hook callbacks accurately with the underlying SQLite C API, cleaning up the code to prevent potential future confusion or bugs.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/102">#102</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/102">https://gitlab.com/cznic/sqlite/-/merge_requests/102</a>), thanks Josh Bleecher Snyder!</li> <li>Fix <code>checkptr</code> instrumentation failures during <code>go test -race</code> when registering and using virtual tables (<code>vtab</code>).</li> <li>Allocate <code>sqlite3_module</code> instances using the C allocator (<code>libc.Xcalloc</code>) instead of the Go heap. This ensures transpiled C code can safely perform pointer operations on the struct without tripping Go's pointer checks.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/103">#103</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/103">https://gitlab.com/cznic/sqlite/-/merge_requests/103</a>), thanks Josh Bleecher Snyder!</li> <li>Fix data race on <code>mutex.id</code> in the <code>mutexTry</code> non-recursive path.</li> <li>Ensure consistent atomic writes (<code>atomic.StoreInt32</code>) to prevent data races with atomic loads in <code>mutexHeld</code> and <code>mutexNotheld</code> during concurrent execution.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/104">#104</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/104">https://gitlab.com/cznic/sqlite/-/merge_requests/104</a>), thanks Josh Bleecher Snyder!</li> <li>Fix resource leak in <code>(*Backup).Commit</code> where the destination connection was not closed on error.</li> <li>Ensure <code>dstConn</code> is properly closed when <code>sqlite3_backup_finish</code> fails, preventing file descriptor, TLS, and memory leaks.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/105">#105</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/105">https://gitlab.com/cznic/sqlite/-/merge_requests/105</a>), thanks Josh Bleecher Snyder!</li> <li>Fix <code>Exec</code> to fully drain rows when encountering <code>SQLITE_ROW</code>, preventing silent data loss in DML statements.</li> <li>Previously, <code>Exec</code> aborted after the first row, meaning <code>INSERT</code>, <code>UPDATE</code>, or <code>DELETE</code> statements with a <code>RETURNING</code> clause would fail to process subsequent rows. The execution path now correctly loops until <code>SQLITE_DONE</code> and properly respects context cancellations during the drain loop, fully aligning with native C <code>sqlite3_exec</code> semantics.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/106">#106</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/106">https://gitlab.com/cznic/sqlite/-/merge_requests/106</a>), thanks Josh Bleecher Snyder!</li> <li>Fix &quot;Shadowed err value (stmt.go)&quot;.</li> <li>See [GitLab issue <a href="https://gitlab.com/cznic/sqlite/issues/249">#249</a>](<a href="https://gitlab.com/cznic/sqlite/-/work_items/249">https://gitlab.com/cznic/sqlite/-/work_items/249</a>), thanks Emrecan BATI!</li> <li>Fix silent omission of virtual table savepoint callbacks by correctly setting the sqlite3_module version.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/107">#107</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/107">https://gitlab.com/cznic/sqlite/-/merge_requests/107</a>), thanks Josh Bleecher Snyder!</li> <li>Fix <code>vfsRead</code> to properly handle partial and fragmented reads from <code>io.Reader</code>.</li> <li>Replace <code>f.Read</code> with <code>io.ReadFull</code> to ensure the buffer is fully populated, preventing premature <code>SQLITE_IOERR_SHORT_READ</code> errors on valid mid-stream partial reads. Unread tail bytes at EOF are now efficiently zero-filled using the built-in <code>clear</code> function.</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/108">#108</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/108">https://gitlab.com/cznic/sqlite/-/merge_requests/108</a>), thanks Josh Bleecher Snyder!</li> <li>Refactor internal error formatting to safely handle uninitialized or closed database pointers.</li> <li>Prevent a misleading &quot;out of memory&quot; error message when an operation fails and the underlying SQLite database handle is <code>NULL</code> (<code>db == 0</code>).</li> <li>See [GitLab merge request <a href="https://gitlab.com/cznic/sqlite/issues/109">#109</a>](<a href="https://gitlab.com/cznic/sqlite/-/merge_requests/109">https://gitlab.com/cznic/sqlite/-/merge_requests/109</a>), thanks Josh Bleecher Snyder!</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://gitlab.com/cznic/sqlite/commit/b95ed459e063439b1b7f58db051f168832bb14b6"><code>b95ed45</code></a> upgrade to SQLite 3.53.1</li> <li>See full diff in <a href="https://gitlab.com/cznic/sqlite/compare/v1.50.0...v1.50.1">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 07d0d86 commit 6407369

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require (
3636
golang.org/x/crypto v0.51.0
3737
golang.org/x/image v0.40.0
3838
gopkg.in/yaml.v3 v3.0.1
39-
modernc.org/sqlite v1.50.0
39+
modernc.org/sqlite v1.50.1
4040
)
4141

4242
require (
@@ -133,7 +133,7 @@ require (
133133
golang.org/x/term v0.43.0 // indirect
134134
golang.org/x/text v0.37.0 // indirect
135135
golang.org/x/tools v0.44.0 // indirect
136-
modernc.org/libc v1.72.0 // indirect
136+
modernc.org/libc v1.72.3 // indirect
137137
modernc.org/mathutil v1.7.1 // indirect
138138
modernc.org/memory v1.11.0 // indirect
139139
)

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD
355355
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
356356
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
357357
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
358-
modernc.org/cc/v4 v4.27.3 h1:uNCgn37E5U09mTv1XgskEVUJ8ADKpmFMPxzGJ0TSo+U=
359-
modernc.org/cc/v4 v4.27.3/go.mod h1:3YjcbCqhoTTHPycJDRl2WZKKFj0nwcOIPBfEZK0Hdk8=
360-
modernc.org/ccgo/v4 v4.32.4 h1:L5OB8rpEX4ZsXEQwGozRfJyJSFHbbNVOoQ59DU9/KuU=
361-
modernc.org/ccgo/v4 v4.32.4/go.mod h1:lY7f+fiTDHfcv6YlRgSkxYfhs+UvOEEzj49jAn2TOx0=
358+
modernc.org/cc/v4 v4.28.2 h1:3tQ0lf2ADtoby2EtSP+J7IE2SHwEJdP8ioR59wx7XpY=
359+
modernc.org/cc/v4 v4.28.2/go.mod h1:OnovgIhbbMXMu1aISnJ0wvVD1KnW+cAUJkIrAWh+kVI=
360+
modernc.org/ccgo/v4 v4.34.0 h1:yRLPFZieg532OT4rp4JFNIVcquwalMX26G95WQDqwCQ=
361+
modernc.org/ccgo/v4 v4.34.0/go.mod h1:AS5WYMyBakQ+fhsHhtP8mWB82KTGPkNNJDGfGQCe0/A=
362362
modernc.org/fileutil v1.4.0 h1:j6ZzNTftVS054gi281TyLjHPp6CPHr2KCxEXjEbD6SM=
363363
modernc.org/fileutil v1.4.0/go.mod h1:EqdKFDxiByqxLk8ozOxObDSfcVOv/54xDs/DUHdvCUU=
364364
modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
@@ -367,18 +367,18 @@ modernc.org/gc/v3 v3.1.2 h1:ZtDCnhonXSZexk/AYsegNRV1lJGgaNZJuKjJSWKyEqo=
367367
modernc.org/gc/v3 v3.1.2/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY=
368368
modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks=
369369
modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI=
370-
modernc.org/libc v1.72.0 h1:IEu559v9a0XWjw0DPoVKtXpO2qt5NVLAnFaBbjq+n8c=
371-
modernc.org/libc v1.72.0/go.mod h1:tTU8DL8A+XLVkEY3x5E/tO7s2Q/q42EtnNWda/L5QhQ=
370+
modernc.org/libc v1.72.3 h1:ZnDF4tXn4NBXFutMMQC4vtbTFSXhhKzR73fv0beZEAU=
371+
modernc.org/libc v1.72.3/go.mod h1:dn0dZNnnn1clLyvRxLxYExxiKRZIRENOfqQ8XEeg4Qs=
372372
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
373373
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
374374
modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI=
375375
modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
376-
modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
377-
modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
376+
modernc.org/opt v0.2.0 h1:tGyef5ApycA7FSEOMraay9SaTk5zmbx7Tu+cJs4QKZg=
377+
modernc.org/opt v0.2.0/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
378378
modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
379379
modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
380-
modernc.org/sqlite v1.50.0 h1:eMowQSWLK0MeiQTdmz3lqoF5dqclujdlIKeJA11+7oM=
381-
modernc.org/sqlite v1.50.0/go.mod h1:m0w8xhwYUVY3H6pSDwc3gkJ/irZT/0YEXwBlhaxQEew=
380+
modernc.org/sqlite v1.50.1 h1:l+cQvn0sd0zJJtfygGHuQJ5AjlrwXmWPw4KP3ZMwr9w=
381+
modernc.org/sqlite v1.50.1/go.mod h1:tcNzv5p84E0skkmJn038y+hWJbLQXQqEnQfeh5r2JLM=
382382
modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
383383
modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=
384384
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=

0 commit comments

Comments
 (0)