diff --git a/src/serverless.ts b/src/serverless.ts index 38d94f9..991c53b 100644 --- a/src/serverless.ts +++ b/src/serverless.ts @@ -48,7 +48,7 @@ export async function postQuery(config: Config, body, session = '', isolation if (response.ok) { const resp = await response.json() - if ( resp.sLastInsertID && resp.sLastInsertID != "0"){ + if ( resp.sLastInsertID ){ resp.lastInsertId = BigInt(resp.sLastInsertID) } const session = response.headers.get('TiDB-Session')