Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
a5bb807
Fix sha256_password auth plugin on unix transport (#1246)
santhosh-tekuri Aug 24, 2021
6cf3092
Go 1.17 and MariaDB 10.6 are released (#1253)
shogo82148 Aug 25, 2021
0d7b91a
Fixed SetReadDeadline before connCheck (#1299)
zjj Jan 10, 2022
217d050
enhancement for mysqlConn handleAuthResult (#1250)
zjj Jan 19, 2022
c1aa681
utils: fix typo (#1312)
cuishuang Mar 3, 2022
ce134bf
util: Reduce boundery check in escape functions. (#1316)
methane Mar 11, 2022
90e813f
Add go1.18 to test matrix (#1317)
moredure Mar 18, 2022
eff3908
Move default packet size to constant (#1319)
moredure Mar 25, 2022
ad9fa14
Add SQLState to MySQLError (#1321)
thopos Apr 13, 2022
0c62bb2
Go1.19 is released (#1350)
shogo82148 Aug 19, 2022
a477f69
fix: benchmarkExecContext is unused (#1351)
shogo82148 Aug 19, 2022
803c0e0
migrate set-output to the environment file (#1368)
shogo82148 Nov 7, 2022
05bed83
Add CodeQL workflow for GitHub code scanning (#1369)
lgtm-com[bot] Nov 9, 2022
fa1e4ed
Fix parsing 0 year. (#1257)
methane Nov 10, 2022
41dd159
Add `AllowFallbackToPlaintext` and `TLS` to config (#1370)
lance6716 Nov 28, 2022
5cee457
update changelog for Version 1.7 (#1376)
shogo82148 Dec 2, 2022
4591e42
bump actions/checkout@v3 and actions/setup-go@v3 (#1375)
shogo82148 Dec 9, 2022
af380e9
Use SET syntax as specified in the MySQL documentation (#1402)
beautifulentropy Mar 8, 2023
d83ecdc
Add go1.20 and mariadb10.11 to the testing matrix (#1403)
pgporada Mar 30, 2023
f0e16c6
Increase default maxAllowedPacket size. (#1411)
methane Apr 14, 2023
faedeff
Correct maxAllowedPacket default value mentioned in docs to match the…
sjmudd Apr 15, 2023
8503110
fix some comments (#1417)
cuishuang Apr 25, 2023
f20b286
Update changelog for version 1.7.1 (#1418)
methane Apr 25, 2023
aa0194d
Drop Go 1.13-17 support (#1420)
methane Apr 25, 2023
cffc85c
Reduced allocation on connection.go (#1421)
Apr 25, 2023
fbfb3f6
Adding DeregisterDialContext (#1422)
jypelle May 1, 2023
191a7c4
Make logger configurable per Connector (#1408)
frozenbonito May 4, 2023
0b40aee
Avoid panic in TestRowsColumnTypes (#1426)
wayyoungboy May 6, 2023
736b6fa
Stop `ColumnTypeScanType()` from returning `sql.RawBytes` (#1424)
methane May 7, 2023
081308f
Add benchmark to receive massive rows. (#1415)
methane May 7, 2023
a841e81
Fix ColumnType.DatabaseTypeName for mediumint unsigned (#1428)
evanelias May 17, 2023
72e78ee
README: Update multistatement (#1431)
methane May 19, 2023
924f833
Send connection attributes (#1389)
Daemonxiao May 23, 2023
d3e4fe6
Use PathEscape for dbname in DSN. (#1432)
methane May 25, 2023
7b4d7eb
all: replace ioutil pkg to new package (#1438)
uji May 26, 2023
7b22099
code optimization (#1439)
testwill May 26, 2023
99976f4
Use `SET NAMES charset COLLATE collation`. (#1437)
methane May 27, 2023
f43effa
Reduce map lookup in ColumnTypeDatabaseTypeName. (#1436)
methane May 27, 2023
397e2f5
Exec() now provides access to status of multiple statements. (#1309)
mherr-google May 29, 2023
8365b94
doc: add link to NewConnector from FormatDSN (#1442)
dolmen Jun 2, 2023
65ed3c5
Add fuzz test for FormatDSN (#1444)
dolmen Jun 2, 2023
cf948e4
TestDSNReformat: add more roundtrip checks (#1443)
dolmen Jun 13, 2023
943264b
ignore errors returned by SetKeepAlive (#1448)
achille-roussel Jun 13, 2023
564dee9
CI: use staticcheck (#1449)
methane Jun 16, 2023
5d4a831
Parse numbers on text protocol too (#1452)
methane Jul 3, 2023
0b18dac
Add Daemonxiao to AUTHORS (#1459)
Daemonxiao Jul 13, 2023
2c81c69
update docs link about load data local (#1468)
i7a7467 Aug 3, 2023
e503d8d
Update README.md (#1464)
Netzer7 Aug 7, 2023
825b4e8
merge upstream
briangann Aug 8, 2023
ae9238e
update to go1.20
briangann Aug 8, 2023
fd92d90
lint must pass before running tests
briangann Aug 8, 2023
c779fc1
update packages
briangann Aug 8, 2023
61c6e84
update packages
briangann Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "18 19 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ go ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
31 changes: 22 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,38 @@ env:
MYSQL_TEST_CONCURRENT: 1

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1.3"

list:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
needs: lint
steps:
- name: list
id: set-matrix
run: |
import json
import os
go = [
# Keep the most recent production release at the top
'1.16',
'1.20',
# Older production releases
'1.15',
'1.14',
'1.13',
'1.19',
'1.18',
]
mysql = [
'8.0',
'5.7',
'5.6',
'mariadb-10.11',
'mariadb-10.6',
'mariadb-10.5',
'mariadb-10.4',
'mariadb-10.3',
Expand All @@ -40,7 +51,7 @@ jobs:
includes = []
# Go versions compatibility check
for v in go[1:]:
includes.append({'os': 'ubuntu-latest', 'go': v, 'mysql': mysql[0]})
includes.append({'os': 'ubuntu-latest', 'go': v, 'mysql': mysql[0]})

matrix = {
# OS vs MySQL versions
Expand All @@ -51,7 +62,8 @@ jobs:
'include': includes
}
output = json.dumps(matrix, separators=(',', ':'))
print('::set-output name=matrix::{0}'.format(output))
with open(os.environ["GITHUB_OUTPUT"], 'a', encoding="utf-8") as f:
f.write('matrix={0}\n'.format(output))
shell: python
test:
needs: list
Expand All @@ -60,11 +72,11 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.list.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: shogo82148/actions-setup-mysql@v1
- uses: shogo82148/actions-setup-mysql@v1.16.0
with:
mysql-version: ${{ matrix.mysql }}
user: ${{ env.MYSQL_TEST_USER }}
Expand All @@ -76,6 +88,7 @@ jobs:
; TestConcurrent fails if max_connections is too large
max_connections=50
local_infile=1
performance_schema=on
- name: setup database
run: |
mysql --user 'root' --host '127.0.0.1' -e 'create database gotest;'
Expand Down
11 changes: 11 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ Carlos Nieto <jose.carlos at menteslibres.net>
Chris Kirkland <chriskirkland at github.com>
Chris Moos <chris at tech9computers.com>
Craig Wilson <craiggwilson at gmail.com>
Daemonxiao <735462752 at qq.com>
Daniel Montoya <dsmontoyam at gmail.com>
Daniel Nichter <nil at codenode.com>
Daniël van Eeden <git at myname.nl>
Dave Protasowski <dprotaso at gmail.com>
DisposaBoy <disposaboy at dby.me>
Egor Smolyakov <egorsmkv at gmail.com>
Erwan Martin <hello at erwan.io>
Evan Elias <evan at skeema.net>
Evan Shaw <evan at vendhq.com>
Frederick Mayle <frederickmayle at gmail.com>
Gustavo Kristic <gkristic at gmail.com>
Expand All @@ -47,6 +49,7 @@ INADA Naoki <songofacandy at gmail.com>
Jacek Szwec <szwec.jacek at gmail.com>
James Harr <james.harr at gmail.com>
Janek Vedock <janekvedock at comcast.net>
Jean-Yves Pellé <jy at pelle.link>
Jeff Hodges <jeff at somethingsimilar.com>
Jeffrey Charles <jeffreycharles at gmail.com>
Jerome Meyer <jxmeyer at gmail.com>
Expand All @@ -61,6 +64,7 @@ Kamil Dziedzic <kamil at klecza.pl>
Kei Kamikawa <x00.x7f.x86 at gmail.com>
Kevin Malachowski <kevin at chowski.com>
Kieron Woodhouse <kieron.woodhouse at infosum.com>
Lance Tian <lance6716 at gmail.com>
Lennart Rudolph <lrudolph at hmc.edu>
Leonardo YongUk Kim <dalinaum at gmail.com>
Linh Tran Tuan <linhduonggnu at gmail.com>
Expand All @@ -77,11 +81,14 @@ Olivier Mengué <dolmen at cpan.org>
oscarzhao <oscarzhaosl at gmail.com>
Paul Bonser <misterpib at gmail.com>
Peter Schultz <peter.schultz at classmarkets.com>
Phil Porada <philporada at gmail.com>
Rebecca Chin <rchin at pivotal.io>
Reed Allman <rdallman10 at gmail.com>
Richard Wilkes <wilkes at me.com>
Robert Russell <robert at rrbrussell.com>
Runrioter Wung <runrioter at gmail.com>
Samantha Frank <hello at entropy.cat>
Santhosh Kumar Tekuri <santhosh.tekuri at gmail.com>
Sho Iizuka <sho.i518 at gmail.com>
Sho Ikeda <suicaicoca at gmail.com>
Shuode Li <elemount at qq.com>
Expand All @@ -91,6 +98,7 @@ Stan Putrya <root.vagner at gmail.com>
Stanley Gunawan <gunawan.stanley at gmail.com>
Steven Hartland <steven.hartland at multiplay.co.uk>
Tan Jinhua <312841925 at qq.com>
Tetsuro Aoki <t.aoki1130 at gmail.com>
Thomas Wodarek <wodarekwebpage at gmail.com>
Tim Ruffles <timruffles at gmail.com>
Tom Jenkinson <tom at tjenkinson.me>
Expand All @@ -103,12 +111,14 @@ Xuehong Chan <chanxuehong at gmail.com>
Zhenye Xie <xiezhenye at gmail.com>
Zhixin Wen <john.wenzhixin at gmail.com>
Ziheng Lyu <zihenglv at gmail.com>
Brian Hendriks <brian at dolthub.com>

# Organizations

Barracuda Networks, Inc.
Counting Ltd.
DigitalOcean Inc.
dyves labs AG
Facebook Inc.
GitHub Inc.
Google Inc.
Expand All @@ -119,3 +129,4 @@ Percona LLC
Pivotal Inc.
Stripe Inc.
Zendesk Inc.
Dolthub Inc.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
## Version 1.7.1 (2023-04-25)

Changes:

- bump actions/checkout@v3 and actions/setup-go@v3 (#1375)
- Add go1.20 and mariadb10.11 to the testing matrix (#1403)
- Increase default maxAllowedPacket size. (#1411)

Bugfixes:

- Use SET syntax as specified in the MySQL documentation (#1402)


## Version 1.7 (2022-11-29)

Changes:

- Drop support of Go 1.12 (#1211)
- Refactoring `(*textRows).readRow` in a more clear way (#1230)
- util: Reduce boundary check in escape functions. (#1316)
- enhancement for mysqlConn handleAuthResult (#1250)

New Features:

- support Is comparison on MySQLError (#1210)
- return unsigned in database type name when necessary (#1238)
- Add API to express like a --ssl-mode=PREFERRED MySQL client (#1370)
- Add SQLState to MySQLError (#1321)

Bugfixes:

- Fix parsing 0 year. (#1257)


## Version 1.6 (2021-04-01)

Changes:
Expand Down
Loading