We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type Model struct { UID int `gorm:"primaryKey"` Swtich1 int Swtich2 int } func CreateModel() { data := Model{UID:10001} db.Create(&data) } // on gorm.io/driver/mysql v1.5.7 // on gorm.io/gorm v1.25.11 // log is sql cost=[8.190ms], rows=1, sql=INSERT INTO `database1`.`model` (`uid`,`swtich1`,`swtich1`) VALUES (10001,0,0)
按照文档 log应该是 INSERT INTO database1.model (uid) VALUES (10001); 是吗?
database1
model
uid
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Your Question
Expected answer
按照文档 log应该是
INSERT INTO
database1
.model
(uid
) VALUES (10001);是吗?
The text was updated successfully, but these errors were encountered: