该原因因为postgres游标在其他地方使用导致
在获取数据时使用新的游标
new_cr = self.pool.cursor()
new_cr.execute(sql.format(tuple(ids)))
result = new_cr.dictfetchall()
该原因因为postgres游标在其他地方使用导致
在获取数据时使用新的游标
new_cr = self.pool.cursor()
new_cr.execute(sql.format(tuple(ids)))
result = new_cr.dictfetchall()
评论区