Skip to content

Commit

Permalink
Fix MySQL driver detection on MariaDB 10.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Jan 29, 2021
1 parent 774d5bc commit b22aeb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ The format is based on [Keep a Changelog], and this project adheres to
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

## [0.6.3] - 2021-01-29

### Fixed

- Fix MySQL driver detection on old versions of MariaDB

## [0.6.2] - 2020-12-18

### Changed
Expand Down Expand Up @@ -132,6 +138,7 @@ placeholder format (`?` for MySQL, `$1` for everything else).
[0.6.0]: https://github.com/dogmatiq/projectionkit/releases/tag/v0.6.0
[0.6.1]: https://github.com/dogmatiq/projectionkit/releases/tag/v0.6.1
[0.6.2]: https://github.com/dogmatiq/projectionkit/releases/tag/v0.6.2
[0.6.3]: https://github.com/dogmatiq/projectionkit/releases/tag/v0.6.3

<!-- version template
## [0.0.1] - YYYY-MM-DD
Expand Down
2 changes: 1 addition & 1 deletion sqlprojection/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (mysqlDriver) IsCompatibleWith(ctx context.Context, db *sql.DB) error {
// Verify that ?-style placeholders are supported.
err := db.QueryRowContext(
ctx,
`SELECT 1 WHERE 1 = ?`,
`SELECT ?`,
1,
).Err()

Expand Down

0 comments on commit b22aeb6

Please sign in to comment.