-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
::INET column type not supported when creating #24129
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: create()
topic: createMany()
topic: @db.Inet
Native type `Inet`
Comments
ping @RrredHead |
To pinpoint: Does it work without |
Druue
added
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
team/client
Issue for team Client.
topic: @db.Inet
Native type `Inet`
topic: createMany()
topic: create()
labels
May 8, 2024
Yes. It works with a regular IP, without the mask. |
As a workaround, for single insertion:
For multiple insertion:
Note that I had to change the id column so postgresql generates it and I can run raw queries without worrying about it.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: create()
topic: createMany()
topic: @db.Inet
Native type `Inet`
Bug description
Related to #17929 (comment)
Inserting a inet column type triggers an error. Both for
create
andcreateMany
How to reproduce
Create a table with the inet type
Insert into the table
An error is thrown
Expected behavior
Prisma inserts correctly
Prisma information
Schema
Query
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: