Uh oh!
There was an error while loading. Please reload this page.
Bug 2054397: Test Perl code for vendor-specific SQL - #171
Open
justdave wants to merge 8 commits into
Open
Conversation
justdave
commented
Jul 13, 2026
Comment on lines
+292
to
+295
| } | ||
| . $dbh->sql_string_concat('removed') . qq{ AS removed, | ||
| } | ||
| . $dbh->sql_string_concat('added') . qq{ AS added |
MemberAuthor
There was a problem hiding this comment.
I'm still not sure what this code is intending by using concat() on a single entity, but this fixes the compatibility issue.
SecurityRisk.pm's revert of the accidental spacing change missed the two sql_string_concat continuation lines, and the same 2-vs-4-space slip recurred unnoticed in nagios_blocker_checker.pl. No behavior change, verified against .perltidyrc.
…y test SQL function names are case-insensitive, so a lowercase concat(...) or unix_timestamp(...) would silently bypass the check. No current violations found repo-wide; this is a defense-in-depth follow-up.
mrenvoizeforce-pushed
the
bug-2054397-harmony
branch
from
August 3, 2026 15:07
187b2b0 to
b875154Comparemrenvoize
approved these changes
Aug 3, 2026
mrenvoize
left a comment
Contributor
There was a problem hiding this comment.
Generally this looks good.. I added a couple of trivial followups to fix a newly failing tidy test and also make the check case insensitive as SQL itself is often case insensative.
I'm happy to approve this, but it did wonder if we might want to centralise more of the File::Find logic, around /scripts, into the shared helper class rather than do some or our own stuff here.. but I think that should be it's own bug if we opt to do so.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Tests perl code for vendor-specific SQL where we have db-agnostic helper methods available
Additional info
Test Plan
bash docker/run-tests-in-docker.sh release prove -lv t/013db_portability.tThe initial run produced the following output:
And this PR should fail tests for the same reason. Second commit will fix the failures.