yangxiaoyu
yangxiaoyu
``` local decoded = pb.decode(m.output_type, buffer) ``` 调用decode的时候返回了空, 现在排查没有头绪,有没有什么debug接口可以看下内部哪里报错了?
## Your Question 开发代码的时候在外层设置了 `gorm:table_options` 代码如下: ``` db.Debug().Model(info).WithContext(context.TODO()). Set("gorm:table_options", " ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8_bin COMMENT='测试' "+ "shardkey=f_userid").AutoMigrate(&info) ``` 在 AutoMigrate, stmt中的 DB 拿到的 m.sharding.DB ``` stmt := &gorm.Statement{DB: m.sharding.DB} ```...
*Please include as much info as possible to save me (solo maintainer helping for free) some time. A [minimal, complete, and reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) is a must. Link to a gist...