mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package

Results 164 mysql issues
Sort by recently updated
recently updated
newest added

Reading the code(https://github.com/go-sql-driver/mysql/blob/master/packets.go#L39), all network read errors are replaced by ErrInvalidConn. Can we distinguish read/write timeout from other errors? Is there a reason for the design here? PS: sometime, we...

### Description In a production environment, it is sometimes necessary to distinguish between network timeouts and other network errors, and handle timeouts, such as reconnection at the business level. I've...

I've got a row defined: "date_disconnect" datetime DEFAULT NULL I'm also running mysql in strictmode: ``` > select @@global.sql_mode\G *************************** 1. row *************************** @@global.sql_mode: REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION ``` I set these modes...

bug

### Issue description When calling Exec() with multiple statements, we'd like to be able to access LastInsertId and RowsAffected for all statements, not just the last one. The motivating use...

### Description This Pull Request adds support for sending connection attributes, which are used for identifying individual connections in MySQL. See [MySQL docs: Performance Schema Connection Attribute Tables](https://dev.mysql.com/doc/refman/8.0/en/performance-schema-connection-attribute-tables.html). This feature...

### Description I found a panic in my apps: ``` panic: sync/atomic: store of nil value into Value /usr/local/go/src/sync/atomic/value.go:47 +0x12c /go/pkg/mod/github.com/go-sql-driver/[email protected]/utils.go:831 /go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:435 +0x51 /go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:622 +0x19a /go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:611 +0xbe ``` But according...

Signed-off-by: crazycs520 ### Description Please explain the changes you made here. add [TiDB](https://github.com/pingcap/tidb) support in README.md ### Checklist - [ ] Code compiles correctly - [ ] Created tests which...

### Issue description [`mysqlConn.ExecContext`](https://github.com/go-sql-driver/mysql/blob/v1.6.0/connection.go#L514) uses [`mysqlConn.watchCancel`](https://github.com/go-sql-driver/mysql/blob/v1.6.0/connection.go#L520) to decide if the `ctx` passed as an argument is canceled, so if the `ctx` is canceled before the decision, it returns an error....

### Issue description In code, when we don't set up Net, the ADDR disappeared in formated DSN. and if we **set Net to an empty string**, this behavior can be...

### Issue description after upgrade from v1.5.0 to v.1.6.0, a `time.Time` representing an actual time without a date cannot be inserted into a column of type `TIME` any longer, as...