-
Richard Hartman
- PowerBuilder
- Thursday, 12 February 2026 10:48 PM UTC
I have recently converted to PB2025, so it is now supposed to be compiling everything from sources.
This:select status_code into :ls_current_status_drc1 from circuit_direction_status where circuit_direction_id = :ll_circuit_drc1and start_date <= :ldt_currentgroup by circuit_direction_idhaving start_date = max(start_date);
Is wrong. ---------- Compiler: Warnings (1:10:44 PM)w:\github\vyvx-vbus-mssql-2025-proj\vbus\src\uo_nw\uo_nw.pbl\uo_vendor_cir.sru(365,36): uo_vendor_cir.uf_circuit_status_check(28,36): Database C0038: SQLSTATE = 42000 Microsoft OLE DB Driver for SQL Server Column 'circuit_direction_status.start_date' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause. ---------- Finished Warnings (1:10:44 PM) ---------- Elapsed: 00:00.028
The thing is ... it always was wrong. It was never right.
I have done many full -- not incremental -- full builds and was never notified about this problem. Until I changed something else in the module that this was in, and when I tried to save the module THEN I got this message.
My question is why. If a full build doesn't report these problems, how should I find them other than when I randomly touch something else in the same module?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.