Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
judge zero
Browse files Browse the repository at this point in the history
shiyuhang0 committed Jul 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2aed3ec commit 60396f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverless.ts
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ export async function postQuery<T>(config: Config, body, session = '', isolation

if (response.ok) {
const resp = await response.json()
if ( resp.lastInsertIDString ){
if ( resp.lastInsertIDString && resp.lastInsertIDString != "0"){
resp.lastInsertId = BigInt(resp.lastInsertIDString)
}
const session = response.headers.get('TiDB-Session')

0 comments on commit 60396f2

Please sign in to comment.