今天踩了个大坑!!TypeORM生成的SQL,mssql不支持,因为版本太老,作者不支持啦!!

涉及Find,FindOne方法等,因为用到了新语法FETCH ,报错:QueryFailedError: Error: Invalid usage of the option NEXT in the FETCH statement.

临时解决办法:用原生SQL或者createQueryBuilder来取代find方法。

 

TypeORM+SQL Server 2008踩坑

 

相关文章:

  • 2022-02-16
  • 2021-06-18
  • 2021-11-09
  • 2021-11-09
  • 2022-02-18
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2021-11-18
  • 2022-02-02
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案