Skip to content

Commit

Permalink
fix: TypeORM Health Check for SAP HANA
Browse files Browse the repository at this point in the history
Change the SQL for the connection health check to 'SELECT now() from dummy'

closes #1138
  • Loading branch information
SvendDomdey committed Mar 31, 2021
1 parent 10cdcad commit dc32733
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/health-indicator/database/typeorm.health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ export class TypeOrmHealthIndicator extends HealthIndicator {
case 'oracle':
check = connection.query('SELECT 1 FROM DUAL');
break;
case 'sap':
check = connection.query('SELECT now() FROM dummy');
break;
default:
check = connection.query('SELECT 1');
break;
Expand Down

0 comments on commit dc32733

Please sign in to comment.