Gorm Inconsistent results were detected using the same SQL

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/505Test Datastart_time,end_time,id2022-06-24 10:18:03,202...

Gorm Add unique index using migrator

Your QuestionI am having the same Issue as in https://github.com/go-gorm/gorm/issues/3973. I undestand it would be a bre...

Gorm Automigration does not appear to handle embedded gorm models

GORM Playground Linkhttps://go.dev/play/p/H0kaUoRuJehDescriptionHas-many relationships appear to require explicit defini...

Gorm 哪位大佬实现一下这个自增id的pr吧

自增id migrate出问题实在没时间来实现,涉及到mysql跟postgreshttps://github.com/go-gorm/gorm/pull/5452Comment From: github-actions[bot]The i...

Gorm 用原生查询,怎么获取插入的主键?

LastInsertId没有了,怎么办Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playg...

Gorm How to specify the initial START value in a pg sequence for a custom primary key?

What version of Go are you using (go version)?1.9Which database and its version are you using?pg 9.5.3I would like to be...

Gorm Is this reasonable? Statement.AddVar generate sql with extra parentheses

Your Questionvar exists boolsql = SELECT EXISTS(SELECT * FROM table WHERE aid = ? LIMIT 1)err := db.Raw(sql, 123456).Row...

Gorm failed to parse '1' as default value for uint, got error: strconv.ParseUint: parsing "'1'": invalid syntax

Structure to set the default character type, but the actual field type is an integer. Query and creation errors are repo...

Gorm Automigrate is updating updated_at timestamp, is this normal behavior?

Automigration updates updated_at column of tables containing column(s) of []text type and only if the row has non-null v...

Gorm Effective selection of entity with many-to-many relation

Many To Many selectHi. I have second entities:type Note struct { ID uuid.UUID `gorm:"primaryKey;type:uuid...

Gorm How to use 'SET SESSION group_concat_max_len=2000'

I want to change group_concat_max_len in the sessionComment From: li-jin-gouhttps://gorm.io/docs/sql_builder.html#Connec...

Gorm V1.23.x AutoMigrate Bug(first ok, but when run more than once, will fire error).

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/451Descriptionin the gorm version 1.23.x, first AutoMigra...

Gorm How to insert field in custom join table ?

Your QuestionHi, there I have following models accounts, class_members and classes.Business logic if student (account ha...

Gorm Migration exception

import ( "gorm.io/driver/mysql" "gorm.io/gorm")type XnAddress struct { ID int64 `gorm:&...

Gorm Find() uses values from the previous row in 1.23.6

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/485DescriptionIt looks like DB.Model().Find() use values ...

Gorm Are inet / cidr types of supported in GORM?

Since GORM v2 has switched to pgx, which has inet/cidr support.If yes, what's the proper way to use it?Tried something l...

Gorm sql syntax error

gorm version:v1.23.8database:Mysqltable structureWhen I use gorm, the following sql statement is generated, it cannot be...

Gorm many2many重复创建

many2many会被重复创建,使用的是v1.23.8版本Comment From: github-actions[bot]The issue has been automatically marked as stale as it mis...

Gorm Query taking longer time than usual.

Query taking longer time than usual.Hi I am using mentioned function to connect database using gorm, instrumented with a...

Gorm Insert sql with MySQL Geometry Type in gorm client throws error,but MySQL native client success run

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/501https://github.com/go-gorm/playground/pull/1Descriptio...
上一页 下一页
.