Null parameter error
Posted: Sat 15 Dec 2018 19:39
Using unidac + mysql provider
select * from income where id = ifnull(:aid, id)
If I pass 'aid' parameter value as null value, I get following error. Can you help me?
If aid is not null, it works well.
ErrorCode: -2147467259, Number: 1054
ErrorMessage: Unknown column 'aid' in 'where clause'
select * from income where id = ifnull(:aid, id)
If I pass 'aid' parameter value as null value, I get following error. Can you help me?
If aid is not null, it works well.
ErrorCode: -2147467259, Number: 1054
ErrorMessage: Unknown column 'aid' in 'where clause'