Hi,
We have been using SmartGWT and customSQL for a while. We wonder if it is possible to write a customSQL that actually use the "SELECT ... INTO OUTFILE" syntax?
We have the datasource descriptor like this but so far could not get it to work. We test the query itself and it did run if we invoke it from a MySQL GUI (MySQL Workbench). We checked the MySQL process on the server do have the write permission to write file into the target path. We also check that the MySQL use has the FILE permission.
We have been using SmartGWT and customSQL for a while. We wonder if it is possible to write a customSQL that actually use the "SELECT ... INTO OUTFILE" syntax?
We have the datasource descriptor like this but so far could not get it to work. We test the query itself and it did run if we invoke it from a MySQL GUI (MySQL Workbench). We checked the MySQL process on the server do have the write permission to write file into the target path. We also check that the MySQL use has the FILE permission.
Code:
<operationBinding operationType="fetch" operationId="RsSelectIntoOutfile" sqlType="update" >
<customSQL><![CDATA[
select *
into outfile '/var/run/aware/nara/resultSets/rs313089401.csv'
fields terminated by ',' optionally enclosed by '*'
lines terminated by '\n'
from nara_db.rs313089401
]]></customSQL>
</operationBinding>