mySQL boolean columns in table creation ?

Highlighted
One Star

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 ?
Highlighted
Community Manager

Re: mySQL boolean columns in table creation ?

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
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog