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

go-sql-driver / mysql
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: fix/ParseDSN-colon-in-username
DEFAULT BRANCH: master
Repo Added 10 May 2017 10:21AM UTC
Files 19
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

LAST BUILD ON BRANCH fix/ParseDSN-colon-in-username
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 1.8
  • 1.9
  • ErrShortWrite
  • InterpolateParams
  • add-charset
  • atomic
  • auth_refactoring
  • auth_tests
  • authentication
  • backport-bench-1.9
  • binary-littleendian
  • bump-mysql-for-testing
  • changelog
  • clientDeprecateEOF
  • cloudsql
  • columntype
  • compression
  • conncheck-alloc
  • conncheck_platforms
  • connncheck_optional
  • contributing
  • copilot/consolidate-dependabot-prs
  • copilot/update-go-version-1-24-to-1-26
  • copyright
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/dominikh/staticcheck-action-1.4.1
  • dependabot/github_actions/github/codeql-action-4
  • dependabot/go_modules/filippo.io/edwards25519-1.2.0
  • dolthub/master
  • dsn_defaults
  • empty_auth
  • empty_sha256
  • fil-register-set
  • fix-1666
  • fix-bench-massiverows
  • fix-flaky-test
  • fix-getSystemVar-buffer-reuse
  • fix-gomod
  • fix-race-condition-of-test-concurrent
  • fix-staticcheck
  • fix-test
  • fix-test2
  • fix-unused-benchmarkExecContext
  • fix/ParseDSN-colon-in-username
  • fix_bigint_unsigned_scan_type
  • fix_comment_typo
  • fix_formatdsn_connectionattributes
  • flaky_tests
  • fmt
  • formatdsn_err
  • go-mod
  • go1.19-is-released
  • go1.21-and-mysql8.1-are-released
  • go1.24-is-released
  • go110
  • handle_error_packets
  • internal
  • introduce-run-tests-parallel
  • mariadb-test-update
  • mark-as-helper
  • master
  • max-allowed-packet-parsing
  • max_allowed_packet
  • metadataSkip
  • methane-patch-1
  • migrate-set-output
  • migrate-to-node16-actions
  • misc_fixes
  • modernize
  • modernize-2025-11-06
  • opt-read
  • opt-read-19
  • patch-1
  • prepare-for-v1.7.0
  • private-query-tracer
  • purego
  • read_opt
  • read_optimization
  • readme_collation
  • refs/tags/v1.10.0
  • refs/tags/v1.6.0
  • refs/tags/v1.7.0
  • refs/tags/v1.7.1
  • refs/tags/v1.8.0
  • refs/tags/v1.8.1
  • refs/tags/v1.9.0
  • refs/tags/v1.9.1
  • refs/tags/v1.9.2
  • refs/tags/v1.9.3
  • regression801
  • release-1101
  • release-v190
  • release-v191
  • release-v193
  • return-original-error-from-transaction
  • reuse-metadata
  • revert-976-master
  • sha256_password
  • staticcheck
  • strict
  • tls-mysql5-docs
  • tls-security
  • tlsconfig
  • travis
  • travis-allow-failure
  • travis-crossbuild
  • travis-mysql8
  • travis-update
  • tx-19
  • update-internals-links
  • v1.4
  • v1.4.0
  • v1.4.1
  • v1.5.0

10 May 2026 08:53AM UTC coverage: 82.603% (-0.1%) from 82.701%
25624538760

Pull #1768

github

Nghĩa Nguyễn Ngọc
dsn: document that usernames with colons require NewConfig()

The DSN format uses ':' as the user/password separator, making it
impossible to represent a username that contains a colon without
ambiguity. There is no safe way to fix this in ParseDSN without
breaking existing users who rely on the current first-colon behaviour
for passwords that contain colons.

Instead, document the limitation clearly in the ParseDSN godoc and
point callers to NewConfig(), which has no such ambiguity.

Fixes #1747
Pull Request #1768: dsn: document that usernames containing colons require NewConfig()

3376 of 4087 relevant lines covered (82.6%)

2296571.58 hits per line

Relevant lines Covered
Build:
Build:
4087 RELEVANT LINES 3376 COVERED LINES
2296571.58 HITS PER LINE
Source Files on master
  • Tree
  • List 19
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25624538760 fix/ParseDSN-colon-in-username dsn: document that usernames with colons require NewConfig() The DSN format uses ':' as the user/password separator, making it impossible to represent a username that contains a colon without ambiguity. There is no safe way to fix this in ParseDS... Pull #1768 10 May 2026 01:42PM UTC Nghĩa Nguyễn Ngọc github
82.6
25598140030 fix/ParseDSN-colon-in-username dsn: use last colon before '@' as user/password separator ParseDSN was using the first colon before '@' as the separator between username and password. This prevented usernames containing colons from being represented in the DSN. The DSN format ... Pull #1768 09 May 2026 01:18PM UTC Nghĩa Nguyễn Ngọc github
82.62
25111778213 refs/tags/v1.10.0 release v1.10.0 (#1765) push 29 Apr 2026 01:33PM UTC web-flow github
82.7
25111743223 master release v1.10.0 (#1765) push 29 Apr 2026 01:30PM UTC web-flow github
82.7
25040169360 release-1101 Update CHANGELOG.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Pull #1765 28 Apr 2026 07:39AM UTC web-flow github
82.7
25039745299 release-1101 release v1.10.0 Pull #1765 28 Apr 2026 07:28AM UTC methane github
82.7
25039389171 master modernize (#1764) go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix ./... push 28 Apr 2026 07:19AM UTC web-flow github
82.7
25037887054 modernize modernize go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix ./... Pull #1764 28 Apr 2026 06:39AM UTC methane github
82.7
25006875835 authentication Improve error handling and refactor authentication plugin system Pull #1696 27 Apr 2026 04:26PM UTC rusher github
82.41
24998159591 authentication Add validation and thread-safety improvements to authentication plugin system Pull #1696 27 Apr 2026 01:36PM UTC rusher github
82.46
See All Builds (1564)
  • Repo on GitHub
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