<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [resolved] Getting an 'invalid default value' error with MySQL tinyint. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-an-invalid-default-value-error-with-MySQL/m-p/2342489#M110352</link>
    <description>Hi,&lt;BR /&gt;I have a very simple job that is reading a table from one database and loading it to another database - same table definition for the source and target.&amp;nbsp; So far so good.&amp;nbsp; &lt;BR /&gt;There is a column on the table that is defined as a tinyint type in MySql with a default value of 0 and is being defined as a Boolean/boolean type in the tMap component with a default value of '0'.&amp;nbsp; Looking at the java code (via the code tab), I see that the column (aka columnA) is defined as follows...&amp;nbsp; `columnA` BIT default '0'.&amp;nbsp; &lt;BR /&gt;When the job is run, it is throwing the below error.&lt;BR /&gt;&lt;B&gt;"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Invalid default value for 'columnA'".&amp;nbsp; &lt;/B&gt;&lt;BR /&gt;Does anyone know how to resolve what should be a pretty simple exercise?&amp;nbsp; Do I need to add an interim casting of the column?&amp;nbsp; Use a different column type (other than boolean/Boolean) on the tMap component for the column?&lt;BR /&gt;Any suggestions are appreciated.&lt;BR /&gt;Thank you.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;</description>
    <pubDate>Sat, 16 Nov 2024 11:07:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:07:26Z</dc:date>
    <item>
      <title>[resolved] Getting an 'invalid default value' error with MySQL tinyint.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-an-invalid-default-value-error-with-MySQL/m-p/2342489#M110352</link>
      <description>Hi,&lt;BR /&gt;I have a very simple job that is reading a table from one database and loading it to another database - same table definition for the source and target.&amp;nbsp; So far so good.&amp;nbsp; &lt;BR /&gt;There is a column on the table that is defined as a tinyint type in MySql with a default value of 0 and is being defined as a Boolean/boolean type in the tMap component with a default value of '0'.&amp;nbsp; Looking at the java code (via the code tab), I see that the column (aka columnA) is defined as follows...&amp;nbsp; `columnA` BIT default '0'.&amp;nbsp; &lt;BR /&gt;When the job is run, it is throwing the below error.&lt;BR /&gt;&lt;B&gt;"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Invalid default value for 'columnA'".&amp;nbsp; &lt;/B&gt;&lt;BR /&gt;Does anyone know how to resolve what should be a pretty simple exercise?&amp;nbsp; Do I need to add an interim casting of the column?&amp;nbsp; Use a different column type (other than boolean/Boolean) on the tMap component for the column?&lt;BR /&gt;Any suggestions are appreciated.&lt;BR /&gt;Thank you.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Sat, 16 Nov 2024 11:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-an-invalid-default-value-error-with-MySQL/m-p/2342489#M110352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting an 'invalid default value' error with MySQL tinyint.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-an-invalid-default-value-error-with-MySQL/m-p/2342490#M110353</link>
      <description>Found my answer through this old post. &amp;nbsp; 
&lt;A href="https://jira.talendforge.org/browse/TDI-1833" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-1833&lt;/A&gt;</description>
      <pubDate>Wed, 29 Jul 2015 14:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-an-invalid-default-value-error-with-MySQL/m-p/2342490#M110353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-29T14:20:09Z</dc:date>
    </item>
  </channel>
</rss>

