V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Rebron1900
V2EX  ›  问与答

prisma 连 mssql 报这个错误,请问有没有前辈知道怎么回事呢?

  •  
  •   Rebron1900 · 2021-12-22 15:04:45 +08:00 · 862 次点击
    这是一个创建于 827 天前的主题,其中的信息可能已经有所发展或是发生改变。
    prisma 连 mssql 报这个错误,请问有没有前辈知道怎么回事呢?
    ---
    Oops, an unexpected error occured!
    [libs\sql-schema-describer\src\mssql.rs:315:30] called `Result::unwrap()` on an `Err` value: "Couldn't parse default value: `create default d_password as 'D,73' `"
    2 条回复    2021-12-24 09:52:10 +08:00
    zinplus
        1
    zinplus  
       2021-12-23 13:23:53 +08:00
    你的 db url 是什么?
    Rebron1900
        2
    Rebron1900  
    OP
       2021-12-24 09:52:10 +08:00
    @zinplus
    sqlserver://本地数据服务器 ip:1433;database=dbname;user=user;password=pwd;TrustServerCertificate=true;
    本来是没有 TrustServerCertificate=true;的,不添加的话会提示 TSL 证书错误。
    后来去 issue 上看了说加上这个,但是加上就会报上面那个错误。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2918 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:11 · PVG 23:11 · LAX 08:11 · JFK 11:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.