hints icon indicating copy to clipboard operation
hints copied to clipboard

Gorm Hint not work with CREATE func.

Open anhekkk opened this issue 9 months ago • 0 comments

GORM Playground Link

https://github.com/go-gorm/playground/pull/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.

anhekkk avatar Mar 22 '25 12:03 anhekkk