fix: resolved oracle failing in app connection

This commit is contained in:
=
2025-07-17 16:23:52 +05:30
parent 75622ed03e
commit 8e829bdf85

View File

@@ -164,7 +164,7 @@ export const validateSqlConnectionCredentials = async (
) => { ) => {
try { try {
await executeWithPotentialGateway(config, gatewayService, async (client) => { await executeWithPotentialGateway(config, gatewayService, async (client) => {
await client.raw(`Select 1`); await client.raw(config.app === AppConnection.OracleDB ? `SELECT 1 FROM DUAL` : `Select 1`);
}); });
return config.credentials; return config.credentials;
} catch (error) { } catch (error) {