Skip to content

Commit

Permalink
fix: SAP HANA inserts used incorrect value for returning query (#8072)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnotjames committed Aug 12, 2021
1 parent 5714e8d commit 36398db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/sap/SapQueryRunner.ts
Expand Up @@ -216,7 +216,7 @@ export class SapQueryRunner extends BaseQueryRunner implements QueryRunner {
const lastIdQuery = `SELECT CURRENT_IDENTITY_VALUE() FROM "SYS"."DUMMY"`;
this.driver.connection.logger.logQuery(lastIdQuery, [], this);
const identityValueResult = await new Promise<any>((ok, fail) => {
databaseConnection.exec(parameters, async (err: any, raw: any) => {
databaseConnection.exec(lastIdQuery, async (err: any, raw: any) => {
if (err) {
fail(new QueryFailedError(lastIdQuery, [], err));
}
Expand Down

0 comments on commit 36398db

Please sign in to comment.