vidakovic commented on code in PR #3321: URL: https://github.com/apache/fineract/pull/3321#discussion_r1281093647
########## fineract-core/src/main/java/org/apache/fineract/infrastructure/core/service/database/DatabaseSpecificSQLGenerator.java: ########## @@ -36,14 +42,26 @@ public DatabaseSpecificSQLGenerator(DatabaseTypeResolver databaseTypeResolver) { } public String escape(String arg) { - if (databaseTypeResolver.isMySQL()) { + return escape(databaseTypeResolver.databaseType(), arg); + } + + public static String escape(DatabaseType dialect, String arg) { Review Comment: ... and on top of that: if we don't declare static then we don't have to pass the dialect parameter... and if we don't need to pass that parameter then we don't need to declare a new function which makes this class more explicit and leaves less to guess for the dev. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@fineract.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org