Hi,
my setup:
centos 6.8
PDI 6.1.0.1-196
MySQL 5.7.11
problem:
I have a transform with Table Input and Table Output element.
Table Input accesses a simple table on a postgresql db. The table has one column named "virtual".
Table Output should just read all lines from Table Input and write them into a similar table in my MySQL db.
(I also did this to some other tables before so in principle it works)
I created the transform with the two elements and connected them.
I wanted to use the Table Output element to create the needed table in my MySQL db.
I've got the following error:
Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'virtual BOOLEAN
, customer_id BIGINT
, maindealer VARCHAR(32)
, vap_access BOOLE' at line 11
I was confused about the meaning of the error so I changed "virtual" to "virtuals" and now the table could be created and filled with data without problems.
So I changed the column name back to "vitual" after I created the table to see wether it could be loaded without error. Unfortunately the error reappeared.
I discovered the following links which point to the problem I think (introduction of virtual columns in MySQL 5.7.6):
-->
https://dev.mysql.com/doc/refman/5.7...d-columns.html
-->
https://dev.mysql.com/doc/relnotes/m...ews-5-7-6.html
So my questions are:
- if here on the forum already a thread for this topic exists (couldn't find it)
- if the problem lies with PDI or if I just made a mistake
- if a workaround/fix is known and how it works
I already tried another idea:
- I downloaded the most recent mysql connector from
https://dev.mysql.com/downloads/connector/j/5.1.html
- I changed the one in PDI /opt/data-integration/lib/mysql-connector-java-5.1.39-bin.jar to 5.1.40
- I restarted PDI and tried again
- Didn't solve the problem for me