Skip to content

Gorm Hint not work with CREATE func. #112

@anhekkk

Description

@anhekkk

GORM Playground Link

go-gorm/playground#1

Description

# tx *gorm.DB

tx.Table(deviceTableName).Clauses(hints.CommentBefore("insert", "...")).Create(&ins).Error

The log output does not show me the comment before insert query, while the others like UPDATES or FIRST is still alright with the comments.

I am using gorm.io/gorm v1.25.12 and gorm.io/hints v1.1.2.

Please check this case for me. Thank a lot.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions