Skip to content

Conversation

@johnny-hausman
Copy link
Collaborator

Fixing issue where we were getting this error:

Error: 
select @rownum := @rownum + 1 AS id, result.* 
   from (
   	   select * 
   	      from `AB_FCFHRApp_View_HRPersonProfileProject`) as `result` 
               inner join (SELECT @rownum := 0) rownum 
          where ( 
          	( `BASE_OBJECT.Status` = 'Active' ) 
          	AND ( 
          		( NULLIF(`DATE(829c8d74.Ended)`, '') IS NULL  ) 
          		OR 
          		( `DATE(829c8d74.Ended)` > NOW() ) 
          	) 
          	AND ( 
          		( `BASE_OBJECT.Person Type` = 'Staff' ) 
          		OR 
          		( `BASE_OBJECT.Person Type` = 'Volunteer' ) 
          	) 
          	) 
          limit 50 

- ER_BAD_FIELD_ERROR: Unknown column 'DATE(829c8d74.Ended)' in 'where clause'

CHANGES:
[fix] ensure proper quoting around DATE() sql conditions

@johnny-hausman johnny-hausman added the patch Tag Pull Requests to trigger a patch version update label Jan 29, 2026
@pong-promrat
Copy link
Contributor

Screenshot 2569-01-30 at 11 00 59

@pong-promrat pong-promrat merged commit e2ec6db into master Jan 30, 2026
6 checks passed
@johnny-hausman johnny-hausman deleted the jh/jamesFixDate branch January 30, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Tag Pull Requests to trigger a patch version update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants