Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

mySQL boolean columns in table creation ?

Hi
I'm using Talend v3.1 RC3 and Java jobs, and I'm trying to create mySQL tables with some boolean columns, but cannot find the BOOLEAN db type.
when a column in the schema is Boolean or boolean, the mapping to DB types is BIT(1) instead of BOOLEAN.
I thought it was nearly the same, but inserting true/false values in these BIT columns, the value I get in the table is "b".
Did I miss something ?
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello
Mysql use TINYINT(1) to replace BOOLEAN, so you should select Boolean on Type column and TINYINT on DB types column.
true will be 1 and false will be 0.
Best regards

shong