Don't use prepare/execute. Use $dbh->func( ..., 'putline' ). DBD::Pg documents this. If this staill fails for you then attempt this using the standard psql client. If it still fails then there's something wrong with your data.
$db_input = "/tmp/snapshot_mil-newberlin1_cco.input"; $formName = ...; $dbh->func( "COPY snapshot_$formName (name, value, collect_date, omp_i +d) FROM '$db_input'", "putline" );
In reply to Re: DBD::Pg copy issues
by diotalevi
in thread DBD::Pg copy issues
by tradez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |