I have simple json mysql query that looks like:
SELECT json_object(
'isCreated', true,
'active', IF(s.status = 1, true, false),
...)
FROM people;
I dont understand why isCreated returns true as expected and active returns 1 when expected to return true
I tried also to run in the mysql shell SELECT IF(1= 1, true, false) and I get back 1, I want it to be true...
IF(s.status = 1, 'true', 'false')'true'which that is not what i want, i need it fto be true, as boolean, and I said the isCreated works well