-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hard crash when describing "zero" datetime (#64)
* Fix #63: Hard crash in MySQLData.description when a zero-value datetime is received from older MySQL configurations which still do this. Returns a description of the epoch instead. * Use the thread-safe gmtime_r() instead of gmtime() in MySQLTime.init(date:). * Pass a more sensible capacity value to ByteBufferAllocator for SHA digests. * Fix deprecation warnings for TLSConfiguration and declare the explicit dependency on the update NIOSSL version. * Another round of long-overdue CI updates * Don't crash if server capabilities are not available during connection close.
- Loading branch information
Showing
9 changed files
with
96 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
MYSQL_USER: vapor_username | ||
MYSQL_PASSWORD: vapor_password | ||
MYSQL_DATABASE: vapor_database | ||
container: swift:5.2-focal | ||
container: swift:5.4-focal | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -53,7 +53,7 @@ jobs: | |
MYSQL_HOSTNAME: mysql-a | ||
MYSQL_HOSTNAME_A: mysql-a | ||
MYSQL_HOSTNAME_B: mysql-b | ||
LOG_LEVEL: error | ||
LOG_LEVEL: trace | ||
linux: | ||
strategy: | ||
fail-fast: false | ||
|
@@ -63,36 +63,39 @@ jobs: | |
- mysql:8.0 | ||
- mariadb:latest | ||
runner: | ||
# 5.2 Stable | ||
- swift:5.2-xenial | ||
- swift:5.2-bionic | ||
- swift:5.2-focal | ||
- swift:5.2-centos7 | ||
- swift:5.2-centos8 | ||
- swift:5.2-amazonlinux2 | ||
# 5.2 Unstable | ||
- swiftlang/swift:nightly-5.2-xenial | ||
- swiftlang/swift:nightly-5.2-bionic | ||
# 5.3 Unstable | ||
- swiftlang/swift:nightly-5.3-xenial | ||
- swiftlang/swift:nightly-5.3-bionic | ||
- swiftlang/swift:nightly-5.3-focal | ||
- swiftlang/swift:nightly-5.3-centos7 | ||
- swiftlang/swift:nightly-5.3-centos8 | ||
- swiftlang/swift:nightly-5.3-amazonlinux2 | ||
# Main Unsable | ||
- swiftlang/swift:nightly-master-xenial | ||
- swiftlang/swift:nightly-master-bionic | ||
- swiftlang/swift:nightly-master-focal | ||
- swiftlang/swift:nightly-master-centos7 | ||
- swiftlang/swift:nightly-master-centos8 | ||
- swiftlang/swift:nightly-master-amazonlinux2 | ||
- swift:5.3-xenial | ||
- swift:5.3-bionic | ||
- swift:5.3-focal | ||
- swift:5.3-centos7 | ||
- swift:5.3-centos8 | ||
- swift:5.3-amazonlinux2 | ||
- swift:5.4-bionic | ||
- swift:5.4-focal | ||
- swift:5.4-centos7 | ||
- swift:5.4-centos8 | ||
- swift:5.4-amazonlinux2 | ||
- swiftlang/swift:nightly-5.5-focal | ||
- swiftlang/swift:nightly-5.5-centos8 | ||
- swiftlang/swift:nightly-5.5-amazonlinux2 | ||
- swiftlang/swift:nightly-main-focal | ||
- swiftlang/swift:nightly-main-centos8 | ||
- swiftlang/swift:nightly-main-amazonlinux2 | ||
exclude: | ||
- runner: swift:5.2-amazonlinux2 | ||
dbimage: mysql:8.0 | ||
- runner: swiftlang/swift:nightly-5.3-amazonlinux2 | ||
- runner: swift:5.3-amazonlinux2 | ||
dbimage: mysql:8.0 | ||
- runner: swiftlang/swift:nightly-master-amazonlinux2 | ||
- runner: swift:5.4-amazonlinux2 | ||
dbimage: mysql:8.0 | ||
- runner: swiftlang/swift:nightly-5.5-amazonlinux2 | ||
dbimage: mysql:8.0 | ||
- runner: swiftlang/swift:nightly-main-amazonlinux2 | ||
dbimage: mysql:8.0 | ||
container: ${{ matrix.runner }} | ||
runs-on: ubuntu-latest | ||
|
@@ -117,7 +120,7 @@ jobs: | |
run: swift test --enable-test-discovery --sanitize=thread | ||
env: | ||
MYSQL_HOSTNAME: mysql | ||
LOG_LEVEL: error | ||
LOG_LEVEL: trace | ||
macOS: | ||
strategy: | ||
fail-fast: false | ||
|
@@ -126,16 +129,19 @@ jobs: | |
- [email protected] | ||
- [email protected] | ||
- mariadb | ||
xcode: | ||
- latest | ||
- latest-stable | ||
include: | ||
- username: root | ||
- formula: mariadb | ||
username: runner | ||
runs-on: macos-latest | ||
steps: | ||
- name: Select latest available Xcode | ||
uses: maxim-lobanov/setup-xcode@1.0 | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest | ||
xcode-version: ${{ matrix.xcode }} | ||
- name: Install MySQL server from Homebrew | ||
run: brew install ${{ matrix.formula }} && brew link --force ${{ matrix.formula }} | ||
- name: Start MySQL server | ||
|
@@ -157,4 +163,20 @@ jobs: | |
env: | ||
MYSQL_HOSTNAME: '127.0.0.1' | ||
MYSQL_DATABASE: vapor_database | ||
LOG_LEVEL: error | ||
LOG_LEVEL: trace | ||
# windows: | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# swiftver: | ||
# - '5.4.2' | ||
# runs-on: windows-latest | ||
# continue-on-error: true | ||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v2 | ||
# - name: Run tests | ||
# uses: MaxDesiatov/swift-windows-action@v1 | ||
# with: | ||
# shell-action: swift test | ||
# swift-version: ${{ matrix.swiftver }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters