Placeholder does not work properly with update

const update = db
  .update(userTable)
  .set({ name: sql.placeholder('name') })
  .where(eq(userTable.id, sql.placeholder('id')))
  .prepare('updateUser');


Is there a workaround to this?
Was this page helpful?