Skip to main content
Topic: Boolean fields in MARIADB 10.4.11 (Read 692 times) previous topic - next topic

Boolean fields in MARIADB 10.4.11

Hi

I'm testing phprad anche I'm getting serious troubles with boolean fields
according to documentation BOOL fields in Maria DB are TINYINT(1)
actually PHPAD do not read correctly boolean values

the only way I've got  to make bool fields working is defining them as BUTTONS ansd manually setting values and labels  to 1,0 and True,False (o active,NotActive)

I need to use checkbox instead of Button fields, but if I set boolean fields as checkBox value are not read acorrectly and updates are not done !

please help!
Thanks

Re: Boolean fields in MARIADB 10.4.11

Reply #1
I would like to second this for a fix please. Right now a checkbox only replies true for checked and ' ' for not checked. Our databases require a tinyint(1) for our boolean value. This is necessary so that a SELECT * FROM table WHERE column = TRUE or FALSE is used. I have triggers that depend on this to be the case.

Thank you.

Re: Boolean fields in MARIADB 10.4.11

Reply #2
I solved this problem using varchar in our mysql database, it seems that phprad are using string values when you use checkbox or radiobuttons, hope this helps to someone