欢迎光临
我们一直在努力

标签:when

编程语言

sqlalchemy.exc.ArgumentError: The “whens” argument to case(), when referring to a sequence of items, is now passed as a series of positional elements, rather than as a list.

andy阅读(5)评论(0)

对于正在从 SQLAlchemy 1.3 或更早版本迁移到 1.4/2.0 的个人站长或技术开发者来说,可能会在使用 case() 表达式构造复杂查询时遇到一个常见的参数错误。这个错误明确指出 whens 参数的用法已发生变化,不再接受一个...