Removed useless call to SQLQueryParser#process() from NativeQueryImpl

This commit is contained in:
Andrea Boriero 2021-07-06 13:43:54 +02:00
parent 0831823b27
commit ba5f77210a
1 changed files with 2 additions and 3 deletions

View File

@ -293,13 +293,12 @@ public class NativeQueryImpl<R>
sqlString, sqlString,
s -> { s -> {
final ParameterRecognizerImpl parameterRecognizer = new ParameterRecognizerImpl( session.getFactory() ); final ParameterRecognizerImpl parameterRecognizer = new ParameterRecognizerImpl( session.getFactory() );
final String sql = new SQLQueryParser( sqlString, null, session.getFactory() ).process();
session.getFactory().getServiceRegistry() session.getFactory().getServiceRegistry()
.getService( NativeQueryInterpreter.class ) .getService( NativeQueryInterpreter.class )
.recognizeParameters( sql, parameterRecognizer ); .recognizeParameters( sqlString, parameterRecognizer );
return new ParameterInterpretationImpl( sql, parameterRecognizer ); return new ParameterInterpretationImpl( sqlString, parameterRecognizer );
} }
); );
} }