• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codenotary / immudb / 28174990179
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix/issue-2100-sql-panics
DEFAULT BRANCH: master
Ran 25 Jun 2026 01:57PM UTC
Jobs 1
Files 311
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2026 01:49PM UTC coverage: 84.98% (+0.02%) from 84.96%
28174990179

Pull #2101

gh-ci

vchaindz
fix(sql): prevent two SQL engine panics introduced in 1.11.0 (#2100)

Two server-crashing panics were reachable from ordinary, valid client
traffic after upgrading to 1.11.0:

1. nil pointer dereference in the disk-spill sort path. The 1.11.0
   projection-pushdown optimization leaves Row.ValuesByPosition[i] nil for
   columns a query does not reference, assuming those slots are never
   accessed. The new file-sort encode path (fileSorter.encodeRow) walked
   every position and called v.Type() on the nil slots, crashing on large
   ORDER BY ... OFFSET result sets that spill to a temp file. encodeRow is
   now a *fileSorter method that substitutes a typed NULL
   (&NullValue{t: s.colTypes[i]}) for nil slots, which round-trips through
   the temp file as SQL NULL.

2. index out of range [0] in db.SQLQuery. Since 1.11.0 the grammar accepts
   empty/comment-only input and ParseSQL returns an empty statement slice
   with no error, so empty probe queries panicked on stmts[0]. Added a
   len(stmts) == 0 guard returning ErrExpectingDQLStmt, matching the
   guard db.SQLExec already uses.

Adds regression tests reproducing both panics.
Pull Request #2101: fix(sql): prevent two SQL engine panics introduced in 1.11.0 (#2100)

13 of 13 new or added lines in 2 files covered. (100.0%)

8 existing lines in 3 files now uncovered.

45227 of 53221 relevant lines covered (84.98%)

126440.63 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
83.79
0.0% embedded/store/immustore.go
2
85.74
-0.3% embedded/appendable/multiapp/multi_app.go
2
76.09
-0.36% pkg/database/lazy_db.go
Jobs
ID Job ID Ran Files Coverage
1 28174990179.1 25 Jun 2026 01:57PM UTC 311
84.98
Source Files on build 28174990179
  • Tree
  • List 311
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2101
  • PR Base - master (#26766859756)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc