Environment: Windows 10, VS15, VC2.3, MySQL5.7
After a bit of experimenting there seems to be a 128 byte limit on the sql code for each item 'selected' - is that right? Can it be increased?
e.g. this simple example works and returns SQLCODE zero.
01 my-host-field pic x(500).
select blah1, concat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
into :blah1, :my-host-field, :blah3 from my-table limit 1
HOWEVER if I add one more 'x' or indeed if I use any select column code > 128 characters e.g. a long case statement, sub-query etc, it still works but I get SQLCODE=1, "[MySQL][ODBC 5.3(w) Driver][mysqld-5.7.12-log]String data, right truncated". This is not to do with the host receiving field but rather the number of characters in the column's sql statement itself, in this case my concat column.