question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash introspecting MSSQL database with DEFAULTs

See original GitHub issue

Hi Prisma Team! Prisma Migrate just crashed.

Command

introspect

Versions

Name Version
Platform darwin-arm64
Node v14.15.4
Prisma CLI 3.9.0
Engine bcc2ff906db47790ee902e7bbc76d7ffb1893009

Error

Error: [libs/sql-schema-describer/src/mssql.rs:315:30] called `Result::unwrap()` on an `Err` value: "Couldn't parse default value: `create default [valueZero] as 0`"

Our SQL Server database schema has this in it:

CREATE DEFAULT [dbo].[valueZero]
AS
0

(This DEFAULT isn’t referenced by name anywhere, but I can’t DROP it because “it is bound to one or more column”.)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pimeyscommented, Mar 4, 2022
1reaction
tomhoulecommented, Feb 4, 2022

Context: we’re seeing that crash in error reporting, mutliple users are encountering it. We should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Database Checkpoints (SQL Server) - Microsoft Learn
Indirect checkpoint is the default behavior for new databases created in SQL Server 2016 (13.x), including the model and tempdb databases.
Read more >
Data sources and drivers dialog | DataGrip Documentation
A driver is a collection that includes database driver files and default settings for creating a data source.
Read more >
Changes 2014r1
19146 All: Setting a shared property via introspection no longer crashes. ... 26219 Database: MSSQLServerDatabase now works with MS SQL Server 2012 (it ......
Read more >
https://opensource.apple.com/source/CPANInternal/C...
0.07028 2012-08-30 05:32:42 - MSSQL: introspect ON DELETE/UPDATE clauses for ... MySQL WARNING: the default on_delete/on_update attributes for belongs_to ...
Read more >
Old Firely Server release notes (v3.x) — Firely Server documentation
Database . SQL Server: The migration that adds the indexes described in Release 3.9.2 hotfix might run longer than the timeout period of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found