Skip to content

Commit

Permalink
Use lowercase table and column names in SQL query to support MSSQL (#183
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frimtec committed Sep 6, 2023
1 parent 0a57a1a commit 517e1c9
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

public class InspectionViolationDao {
private static final String SELECT_NEW_INSPECTION_VIOLATION_STATEMENT =
"select distinct IDA.SEVERITY as SEVERITY,"
+ " IIN.INSPECTION_NAME as INSPECTION_NAME,"
+ " IDA.FILE_NAME as FILE_NAME,"
+ " IRE.LINE as LINE"
+ " from INSPECTION_DIFF IDI "
+ " join INSPECTION_DATA IDA on (IDA.HASH = IDI.HASH) "
+ " join INSPECTION_INFO IIN on (IIN.ID = IDA.INSPECTION_ID) "
+ " join INSPECTION_RESULTS IRE on (IRE.HASH = IDI.HASH) "
+ "where IDI.BUILD_ID = ";
"select distinct IDA.severity as SEVERITY,"
+ " IIN.inspection_name as INSPECTION_NAME,"
+ " IDA.file_name as FILE_NAME,"
+ " IRE.line as LINE"
+ " from inspection_diff IDI"
+ " join inspection_data IDA on (IDA.hash = IDI.hash) "
+ " join inspection_info IIN on (IIN.id = IDA.inspection_id) "
+ " join inspection_results IRE on (IRE.hash = IDI.hash) "
+ "where IDI.build_id = ";

public List<InspectionViolation> findNewInspectionViolations(Connection connection, long buildId) throws SQLException {
List<InspectionViolation> newViolations = new ArrayList<>();
Expand Down

0 comments on commit 517e1c9

Please sign in to comment.