XiaoMi / Gaea

Gaea is a mysql proxy, it's developed by xiaomi b2c-dev team.
Apache License 2.0
2.65k stars 426 forks source link

升级gaea版本后报错commands out of sync #252

Open yuyongli opened 9 months ago

yuyongli commented 9 months ago

go工程,gaea-v1.2.2-linux-amd64-go1.13.4版本之前都能正常运行,升级到gaea-v1.2.5-linux-amd64-go1.13.3后,再次运行相同的gorm查询语句报错commands out of sync. Did you run multiple statements at once 工程中报错的gorm代码如下:orderInfo = new(models.Order) ret := s.DBHandle.Where("order_id = ?", orderId).Limit(1).Find(orderInfo)

mianhk commented 9 months ago

嗯,暂时应该还不支持multi statement,可以先在业务侧做一个改造