Skip to content

returningId makes insert query fail, also auto increment value is weirdly high #79

@yooouuri

Description

@yooouuri

When using returningId, it makes my query fail and timeout the Vercel functions I am using.

  const [ participant ] = await db.insert(participants).values({
    eventId: row.id,
    name: body.name,
    email: body.email,
    phone: body.phone,
    code,
    adults: body.adults,
    kids: body.kids,
    questions: body.questions,
    note: body.note,
    createdAt: new Date(),
    updatedAt: new Date(),
  }).$returningId()
Image

Also, my auto increment value is weirdly around the 3060033 ish...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions