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
go-gorm/playground#1
type TestModel struct { LogID int64 `gorm:"column:log_id;primaryKey;type:UInt64" json:"logID"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` } var arr []*TestModel for i := 0; i < 10; i++ { newObj := &TestModel{ CreatedAt: time.Now(), UpdatedAt: time.Now(), LogID: int64(i), } arr = append(arr, newObj) } db.CreateInBatches(arr, 10000)
Error Msg : clickhouse [AppendRow]: converting clause.Expr to UInt64 is unsupported
The text was updated successfully, but these errors were encountered:
log_id clickhouse [AppendRow]: converting clause.Expr to UInt64 is unsupported [16.795ms] [rows:0] INSERT INTO test_models (created_at,updated_at,log_id) VALUES ('2024-10-10 11:21:18.341','2024-10-10 11:21:18.341',DEFAULT)
test_models
created_at
updated_at
log_id
Sorry, something went wrong.
因为primaryKey导致的
jinzhu
No branches or pull requests
GORM Playground Link
go-gorm/playground#1
Description
Error Msg : clickhouse [AppendRow]: converting clause.Expr to UInt64 is unsupported
The text was updated successfully, but these errors were encountered: