mysql icon indicating copy to clipboard operation
mysql copied to clipboard

GORM mysql driver

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

## GORM Playground Link https://github.com/go-gorm/playground/pull/1 ## Description ![image](https://github.com/go-gorm/mysql/assets/8361981/394ba544-3262-486b-abcb-964a1cac2327) 当expr切换数据库去使用时,expr包含有数据库信息,数据去查询是 table 在这里不应该在指定,指定后报 ![image](https://github.com/go-gorm/mysql/assets/8361981/1ef8ebb1-cdab-41a5-80bb-1a6ee6e8d908) 去掉后正常 ![image](https://github.com/go-gorm/mysql/assets/8361981/82d42122-5d85-41fd-973b-37d5f34512ab)

## Description Column defined with ``` ModTime int64 `gorm:"column:mod_time;not null;autoUpdateTime:nano;index:,composite:mod_time"` ``` is populated correctly with nano timestamps in sqlite3 but in mysql values are rounded to ms i.e. you get...

- [x] Do only one thing - [x] Non breaking API changes - [x] Tested ### What did this pull request do? Fixed https://github.com/go-gorm/gorm/issues/6224. Removed `UNIQUE` in SQL when the...

Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.25.7 to 1.25.9. Commits 26195e6 fix: remove callback from callbacks if Remove() called (#6916) 956f7ce fix: 'type XXXX int' will print wrong sql to terminal (#6917) 0d6c534...

dependencies
go

Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.7.0 to 1.8.1. Release notes Sourced from github.com/go-sql-driver/mysql's releases. v1.8.1 What's Changed Bugfixes: fix race condition when context is canceled in #1562 and #1570 Full Changelog: https://github.com/go-sql-driver/mysql/compare/v1.8.0...v1.8.1...

dependencies
go

github.com/go-sql-driver/mysql v1.8.1 unknown field DefaultStringSize in struct literal of type "github.com/go-sql-driver/mysql".Config

## GORM Playground Link https://github.com/go-gorm/playground/pull/1 ## Description 1.建表 ``` CREATE TABLE `mytest_table` ( `column1` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `column2` char(40) COLLATE utf8mb4_unicode_ci NOT NULL, `column3` tinyint(3) unsigned NOT NULL...

## Description The maximum varchar length depends on the charset of the table, but the autodetection doesn't take that into account. https://dev.mysql.com/doc/refman/8.4/en/column-count-limit.html ``` Error 1074 (42000): Column length too big...