BatchInsertBlock

test-errcode
withchao 2 years ago
parent 1ba6bef27a
commit e8042c9e3e

@ -84,7 +84,7 @@ const (
ConversationPrivateChatNotification = 1701 ConversationPrivateChatNotification = 1701
ConversationUnreadNotification = 1702 ConversationUnreadNotification = 1702
MsgRevokeNotification = 1750 MsgRevokeNotification = 2101
BusinessNotificationBegin = 2000 BusinessNotificationBegin = 2000
BusinessNotification = 2001 BusinessNotification = 2001

@ -154,6 +154,10 @@ func Test_Insert(t *testing.T) {
ctx := context.Background() ctx := context.Background()
var arr []any var arr []any
for i := 0; i < 345; i++ { for i := 0; i < 345; i++ {
if i%2 == 0 {
arr = append(arr, (*unRelationTb.MsgDataModel)(nil))
continue
}
arr = append(arr, &unRelationTb.MsgDataModel{ arr = append(arr, &unRelationTb.MsgDataModel{
Seq: int64(i), Seq: int64(i),
Content: fmt.Sprintf("test-%d", i), Content: fmt.Sprintf("test-%d", i),

Loading…
Cancel
Save