Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [libs\sql-schema-describer\src\mssql.rs:315:30] called Result::unwrap() on an Err value: "Couldn't parse default value: create default [dbo].[member_notification_cancel_flags] as 0\r\n" #10740

Closed
tomhoule opened this issue Dec 17, 2021 · 1 comment · Fixed by prisma/prisma-engines#4884
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: CREATE DEFAULT ... AS ... topic: default topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: introspection topic: prisma db pull CLI: prisma db pull topic: sql server Microsoft SQL Server topic: unwrap error
Milestone

Comments

@tomhoule
Copy link
Contributor

Command: prisma db pull
Version: 3.6.0
Binary Version: dc520b92b1ebb2d28dc3161f9f82e875bd35d727
Report: https://prisma-errors.netlify.app/report/13608
OS: x64 win32 10.0.19042

JS Stacktrace:

Error: [libs\sql-schema-describer\src\mssql.rs:315:30] called `Result::unwrap()` on an `Err` value: "Couldn't parse default value: `create default [dbo].[member_notification_cancel_flags]  as 0\r\n`"
    at ChildProcess.<anonymous> (<...>\node_modules\prisma\build\index.js:46237:30)
    at ChildProcess.emit (node:events:394:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

Rust Stacktrace:

   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: BaseThreadInitThunk
  27: RtlUserThreadStart

@tomhoule tomhoule added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. process/candidate topic: error reporting Issues created via Prisma's CLI Crash Reporting domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. labels Dec 17, 2021
@janpio janpio added the topic: prisma db pull CLI: prisma db pull label Mar 11, 2022
@janpio janpio added the tech/engines Issue for tech Engines. label Mar 24, 2022
@janpio janpio added topic: default topic: CREATE DEFAULT ... AS ... bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels May 23, 2024
@janpio
Copy link
Contributor

janpio commented May 23, 2024

Reproduced: The line breaks cause this, see #24275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: CREATE DEFAULT ... AS ... topic: default topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: introspection topic: prisma db pull CLI: prisma db pull topic: sql server Microsoft SQL Server topic: unwrap error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants