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

codenotary / immudb / 28179252400
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix/issue-2100-sql-panics
DEFAULT BRANCH: master
Ran 25 Jun 2026 03:03PM 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 02:56PM UTC coverage: 84.972% (-0.009%) from 84.981%
28179252400

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%)

11 existing lines in 4 files now uncovered.

45223 of 53221 relevant lines covered (84.97%)

126799.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
83.79
-0.15% embedded/store/immustore.go
3
86.03
-0.45% embedded/appendable/multiapp/multi_app.go
2
84.23
-0.37% embedded/sql/row_reader.go
2
83.61
-3.28% pkg/server/uuid.go
Jobs
ID Job ID Ran Files Coverage
1 28179252400.1 25 Jun 2026 03:03PM UTC 311
84.97
Source Files on build 28179252400
  • Tree
  • List 311
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2101
  • PR Base - master (#28175662551)
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