Crash introspecting MSSQL database with DEFAULTs
See original GitHub issueHi 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:
- Created 2 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Related: https://github.com/prisma/prisma/issues/12150
Context: we’re seeing that crash in error reporting, mutliple users are encountering it. We should fix it.