Skip to content

PrismaNeonHTTP adapter breaks on some types e.g. timestamp #25514

Closed

Description

@andyjy

Bug description

The PrismaNeon adapter uses custom type parsers to address this, but these are not used by the PrismaNeonHTTP adapter.

Use of the PrismaNeonHTTP adapter fails when encountering certain datatypes. e.g. timestamp (returned from the @neondatabase/serverless driver as a javascript Date object when Prisma expects a string)

Error: Inconsistent column data: Conversion failed: expected a string in column '<columnname>', found {}

or with simple $queryRaw

await prisma.$queryRaw`SELECT NOW()`

Raw query failed. Code: `N/A`. Message: `N/A`

How to reproduce

Use PrismaNeonHTTP adapter

Any query that returns an unsupported data type, e.g.

await prisma.$queryRaw`SELECT NOW()`

Expected behavior

No response

Prisma information

Latest prisma v5.21.1

Environment & setup

Latest prisma v5.21.1

Prisma Version

Latest prisma v5.21.1

Activity

  1. added
    kind/bug
    on Oct 26, 2024
  2. added
    bug/1-unconfirmed
    on Nov 30, 2024
  3. added this to the 6.1.0 milestone on Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/1-unconfirmedkind/bugtopic: @prisma/adapter-neontopic: conversion

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions