Skip to content

mysql does not reconnect if connection was closed #670

Closed
@bgaifullin

Description

@bgaifullin

Issue description

if connection has been closed by idle timeout, further requests fails with error 'invalid connection'
seems like this behaviour was introduced by commit 26471af.

because the same code works on version 3955978

Configuration

Driver version (or git SHA):
7785c74

Go version: run go version in your console
go version go1.9 darwin/amd64

Server version: E.g. MySQL 5.6, MariaDB 10.0.20
Ver 5.7.16-10 for osx10.12 on x86_64 (Homebrew)

Server OS: E.g. Debian 8.1 (Jessie), Windows 10
OSX 10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions