Skip to content

Commit

Permalink
Fix PostgreSQLComQueryExecutor databaseType. (#31423)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhucong authored May 28, 2024
1 parent 5c394e4 commit edefb06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class PostgreSQLComQueryExecutor implements QueryCommandExecutor {

public PostgreSQLComQueryExecutor(final PortalContext portalContext, final PostgreSQLComQueryPacket packet, final ConnectionSession connectionSession) throws SQLException {
this.portalContext = portalContext;
DatabaseType databaseType = TypedSPILoader.getService(DatabaseType.class, "openGauss");
DatabaseType databaseType = TypedSPILoader.getService(DatabaseType.class, "PostgreSQL");
SQLStatement sqlStatement = ProxySQLComQueryParser.parse(packet.getSQL(), databaseType, connectionSession);
proxyBackendHandler = ProxyBackendHandlerFactory.newInstance(databaseType, packet.getSQL(), sqlStatement, connectionSession, packet.getHintValueContext());
}
Expand Down

0 comments on commit edefb06

Please sign in to comment.