Problem turns out to be that a column name is being auto generated from the SQL statement and it's the column name that's too long. I don't actually need a column name but adding one solves the problem! e.g. exec sql select blah1, concat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' as MY_COLUMN_NAME, blah3 into :blah1, :my-host-field, :blah3 from my-table limit 1 end-exec.
↧