Gorm Wrong functionality with parametrization and error handling in Raw

GORM issue with different processing timeSee code: log.Printf("Test 1") var resultCount int64 e.GormD...

Gorm syntax error at position 74 near ':'

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionrawSql := "select d.* from image_info as...

Gorm ErrRecordNotFound for Find()/First()/Last() after Create()

When successfully inserting a struct into the database with result := gorm.DB.Create(&struct), a following result :=...

Gorm PostgreSQL Pipelining Execution

Support Pipeline Mode for PostgresqlMotivationPipeling mode allows applications to send a query without having to read t...

Gorm This parameter is used to query the gorm v2 group. Table is not the same as sql generated without using it

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptiongorm v2组查询时,使用.Table与不使用生成的sql不一样This paramet...

Gorm The primary key field will be automatically appended

DescriptionWhen the field is a primary key but not self increasing, using create will automatically append the primary k...

Gorm Weird handling of field.Or in Where expression

https://github.com/go-gorm/gorm/blob/bae684b3639dff3e35d0ed330bc82c12e8282110/clause/where.go#L42This code make sql of e...

Gorm Unexpected behavior, duplicated create records

I have a very simple table like this:type Prompt struct { gorm.Model Uuid string `json:"uu...

Gorm 关联相关问题

如何使用远程一对多呢,A有多个B,B有多个C期望结果:A能拿到关联的多个CComment From: github-actions[bot]The issue has been automatically marked as stale a...

Gorm The actual behavior of the order method does not match the documentation

In the documentation, the order method accepts a clause.OrderBy type parameter, but in the code it doesn't.https://githu...

Gorm 通过table 不支持智能选择字段吗

目前通过model 可以智能选择字段但是通过table 必须通过select手动设置字段,什么情况Comment From: github-actions[bot]The issue has been automatically mark...

Gorm 密码特殊字符

mysql的密码包含特殊字符:比如以%开头,连接的时候会报错,这个问题怎么解决?Comment From: github-actions[bot]The issue has been automatically marked as stal...

Gorm gorm gen doc bug

https://gorm.io/zh_CN/gen/` // gormdb, _ := gorm.Open(mysql.Open("root:@(127.0.0.1:3306)/demo?charset=utf8mb4&parse...

Gorm The document is well written, it is recommended to add examples of the usage of db. Close() in it

I noticed that gorm's documentation is very clearly written and easy to understand.Such as: https://gorm.io/zh_CN/docs/c...

Gorm Composite Indexes not work.

gorm.io/gorm v1.25.4type OrderItem struct { UUID string json:"uuid" gorm:"type:char(32);uniqueInde...

Gorm clause.OnConflict set DoNothing:true not work, cant remove ON DUPLICATE KEY UPDATE

how remove ON DUPLICATE KEY UPDATE .... ?type OrderItem struct {*gin.Model OrderNo string `json:&quot...

Gorm How to override gorm many2many fields in query?

type User struct { ID int `json:"id"` UserID int `json:"user_id"` Languages []Language ...

Gorm how can i remove ON DUPLICATE KEY UPDATE?

try to remove it, but it is not work.db.Session(&gorm.Session{FullSaveAssociations: true}).Clauses(clause.OnConflict...

Gorm 编写插件记录当前删除数据的人不生效

在插件中拿到了上下文的数据,想给字段赋值,但是不生效Comment From: github-actions[bot]The issue has been automatically marked as stale as it missin...

Gorm Data race in (*DB).Find()

DescriptionWe detected a data race in a binary compiled using the -race flag in go build:WARNING: DATA RACEWrite at 0x00...
上一页 下一页
.