Skip to content

Commit

Permalink
Merge pull request #5 from charlie-hadden/insert-id
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Oct 14, 2022
2 parents 3058bbe + 815a9cc commit 0cd03b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class PlanetScaleConnection implements DatabaseConnection {
}

return {
insertId: results.insertId !== null && results.insertId.toString() !== '0' ? BigInt(results.insertId) : undefined,
rows: results.rows as O[],
numUpdatedOrDeletedRows: results.rowsAffected == null ? undefined : BigInt(results.rowsAffected),
}
Expand Down

0 comments on commit 0cd03b3

Please sign in to comment.