Skip to content

Int fields are 0 instead of null #468

@heymartinadams

Description

@heymartinadams

prisma@2.3.0-dev.7, commit 225c75492b90e646e0224803ae30926eb676bdd0

Several records that have been populated with their units fields as null show up as 0 in Studio. In the image below, the record that has 0 should be null. And if you double-click on it, like in the record above it, it shows up as null.

Obviously, for Int fields we can’t have null fields show up as 0.

image

Prisma schema:

model Lodging {
  units  Int?
}

Metadata

Metadata

Assignees

Labels

bug/2-confirmedBug has been reproduced and confirmed.kind/bugA reported bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions