Gorm Sqlserver upsert with schema fail

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/665Descriptionconst ( skema = "my_schema").....

Gorm 当字段类型为tinyint(1)时,生成的数据库模型类型为bool

如果将数据库类型改为int,则能正确生成为inttinyint 会生成错误类型!!!Comment From: github-actions[bot]The issue has been automatically marked as st...

Gorm Gorm v1.25.5 create two records,but get the duplicate PRIMARY KEY

DescriptionWe have a table like this:Table `MyTest` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '自增 ID', `g...

Gorm Document batch delete by providing slice of structs

Describe the featureWhen doing a db.Delete and passing a slice of structs, GORM will do a batch delete of all elements i...

Gorm 更新了 1.25.7 后出现报错

更新了 1.25.7 后出现报错 2024/02/21 10:23:33 ERROR: constraint "uni_users_name" of relation "users" does not exist (SQLSTATE 42...

Gorm Create tables dynamically

Describe the featureCan we create a new method which can create a new table dynamically,just lick this code:db, err := s...

Gorm Postgres Max Identifier length is 63 bytes

GORM Playground Link(no playground link)DescriptionPostgres has a max identifier length of 63 bytes. I see a test here t...

Gorm Gorm returning deleted values for no reason

I am using Gorm (Golang) and for some reason without making changes to my code, it starts returning deleted rows along ...

Gorm [Raw SQL] Named Args ORDER BY

Your QuestionI'm attempting to add a named arg for an ORDER BY, but cannot get it to work.I'm using a Postgres database ...

Gorm count在表中没有数据的时候偶现panic

Description tx := db.Begin() defer tx.Commit() var total int32 if err := tx.Table(constant.Tbl).Where(qu...

Gorm Unable to insert geography point value in postgres.

What version of Go are you using (go version)?go version go1.14 linux/amd64Which database and its version are you using?...

Gorm How to soft delete from many2many associations table?

Your QuestionI'd like to soft-delete instead of hard-delete records in a custom many2many custom associations table so t...

Gorm Unexpected Unscoped behavior

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/697DescriptionI would like to hard delete if the flag is ...

Gorm Prepared statement contains too many placeholders

在使用IN查询的时候,对应的切片的数量占用了累加到使用占位符的数量CREATE TABLE `codes` ( `id` int unsigned NOT NULL AUTO_INCREMENT , `code` varchar(50)...

Gorm Should association with uniqueIndex work?

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/690DescriptionRan into a similar issue and reproduced it ...

Gorm Broken SQL generation after v.1.25.6/7 (nested Where?)

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/689DescriptionIt looks like something in v.1.25.6 changed...

Gorm Pluck panics in a busy connection and canceled context

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/694DescriptionPluck panics in a busy connection and cance...

Gorm Index out of range exception

GORM Playground LinkSorry this is an EMPTY REPO, but I can't reliably reproduce this error, so there's no way for me to ...

Gorm query with where panic

Your QuestionIt's a probabilistic problem, and it's only happened once. When the query statement "where" is executed, th...

Gorm ErrUnsupportedDataType

What version of Go are you using (go version)?go version go1.13.10 linux/amd64Which database and its version are you usi...
上一页 下一页
.