1***@qq.com
1***@qq.com
  • 发布:2023-12-29 00:59
  • 更新:2023-12-29 10:59
  • 阅读:112

【报Bug】db.collection where 中使用正则 int类型查询不到结果

分类:uniCloud

产品分类: uniCloud/App

示例代码:
db.collection('uni-id-base-order').where(`${new RegExp(0, 'i')}.test(status)`).get();

操作步骤:
db.collection('uni-id-base-order').where(`${new RegExp(0, 'i')}.test(status)`).get();

预期结果:

看附件

实际结果:

看附件

bug描述:

status 是 int 类型,使用正则查询无数据,换成别的类型都可以

2023-12-29 00:59 负责人:无 分享
已邀请:
DCloud_uniCloud_VK

DCloud_uniCloud_VK

这是预期内的, 正则只能用在字符串

  • 1***@qq.com (作者)

    好,了解了

    2023-12-31 00:53

要回复问题请先登录注册