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

go-sql-driver / mysql / 40470381080
86%
master: 86%

Build:
Build:
LAST BUILD BRANCH: fix-interpolate
DEFAULT BRANCH: master
Ran 27 Oct 2026 08:00AM UTC
Jobs 23
Files 32
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

27 Oct 2026 07:53AM UTC coverage: 86.048% (+0.3%) from 85.736%
40470381080

Pull #1836

github

methane
Harden interpolateParams against unsafe charsets and -- comments

Reject interpolateParams=true when an unsafe multibyte charset (big5,
sjis, gbk, cp932, gb18030) is given by the charset DSN parameter or
Charset() option. Previously only the collation parameter was checked,
so charset=sjis&interpolateParams=true was silently accepted although
the README says such encodings are rejected. Every fallback charset is
checked, and collations are now matched case-insensitively and by their
charset prefix so that e.g. MariaDB's sjis_japanese_nopad_ci is caught.

Treat "--" followed by \v, \f, any other C0 control character or DEL as
the start of a comment, matching my_isspace() || my_iscntrl() in the
server's lexer. Before, a quote inside such a comment was taken as the
start of a string literal, so a later '?' inside a real string literal
could be replaced and the value would end up outside the literal.

Add a README note that interpolateParams does not fully replicate the
server's parser and that Prepare() should be used for arbitrary SQL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #1836: Harden interpolateParams against unsafe charsets and -- comments

24 of 24 new or added lines in 3 files covered. (100.0%)

75 existing lines in 2 files now uncovered.

3941 of 4580 relevant lines covered (86.05%)

1231622.67 hits per line

Coverage Regressions

Lines Coverage ∆ File
52
87.25
1.16% dsn.go
23
86.63
0.0% connector.go
Jobs
ID Job ID Ran Files Coverage
1 Linux-Go-1.27-DB-8.4 - 40470381080.1 27 Oct 2026 08:02AM UTC 31
83.11
GitHub Action Run
2 macOS-Go-1.27-DB-8.4 - 40470381080.2 27 Oct 2026 08:03AM UTC 31
83.03
GitHub Action Run
3 Windows-Go-1.27-DB-8.4 - 40470381080.3 27 Oct 2026 08:04AM UTC 31
82.94
GitHub Action Run
4 Linux-Go-1.27-DB-mariadb-11.4 - 40470381080.4 27 Oct 2026 08:02AM UTC 31
83.19
GitHub Action Run
5 Windows-Go-1.27-DB-8.0 - 40470381080.5 27 Oct 2026 08:04AM UTC 31
82.84
GitHub Action Run
6 Linux-Go-1.27-DB-8.0 - 40470381080.6 27 Oct 2026 08:04AM UTC 31
83.01
GitHub Action Run
7 Windows-Go-1.27-DB-mariadb-12.3 - 40470381080.7 27 Oct 2026 08:03AM UTC 31
82.89
GitHub Action Run
8 macOS-Go-1.27-DB-8.0 - 40470381080.8 27 Oct 2026 08:07AM UTC 31
82.81
GitHub Action Run
9 macOS-Go-1.27-DB-9.7 - 40470381080.9 27 Oct 2026 08:03AM UTC 31
83.03
GitHub Action Run
10 Windows-Go-1.27-DB-mariadb-10.11 - 40470381080.10 27 Oct 2026 08:03AM UTC 31
82.71
GitHub Action Run
11 macOS-Go-1.27-DB-mariadb-11.4 - 40470381080.11 27 Oct 2026 08:08AM UTC 31
83.03
GitHub Action Run
12 Windows-Go-1.27-DB-mariadb-11.4 - 40470381080.12 27 Oct 2026 08:03AM UTC 31
83.1
GitHub Action Run
13 Linux-Go-1.27-DB-mariadb-11.8 - 40470381080.13 27 Oct 2026 08:02AM UTC 31
83.21
GitHub Action Run
14 Linux-Go-1.27-DB-mariadb-10.11 - 40470381080.14 27 Oct 2026 08:02AM UTC 31
83.31
GitHub Action Run
15 macOS-Go-1.27-DB-mariadb-12.3 - 40470381080.15 27 Oct 2026 08:03AM UTC 31
83.19
GitHub Action Run
16 macOS-Go-1.27-DB-mariadb-10.11 - 40470381080.16 27 Oct 2026 08:03AM UTC 31
83.13
GitHub Action Run
17 Linux-Go-1.25-DB-9.7 - 40470381080.17 27 Oct 2026 08:00AM UTC 30
84.11
GitHub Action Run
18 Linux-Go-1.26-DB-9.7 - 40470381080.18 27 Oct 2026 08:00AM UTC 30
84.02
GitHub Action Run
19 macOS-Go-1.27-DB-mariadb-11.8 - 40470381080.19 27 Oct 2026 08:03AM UTC 31
83.03
GitHub Action Run
20 Linux-Go-1.27-DB-mariadb-12.3 - 40470381080.20 27 Oct 2026 08:02AM UTC 31
83.13
GitHub Action Run
21 Linux-Go-1.27-DB-9.7 - 40470381080.21 27 Oct 2026 08:02AM UTC 31
83.06
GitHub Action Run
22 Windows-Go-1.27-DB-9.7 - 40470381080.22 27 Oct 2026 08:04AM UTC 31
82.94
GitHub Action Run
23 Windows-Go-1.27-DB-mariadb-11.8 - 40470381080.23 27 Oct 2026 08:03AM UTC 31
83.04
GitHub Action Run
Source Files on build 40470381080
  • Tree
  • List 32
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1836
  • PR Base - master (#40465090986)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc