in reply to DBD::Pg copy issues
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" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBD::Pg copy issues
by tradez (Pilgrim) on Sep 10, 2004 at 17:50 UTC | |
by diotalevi (Canon) on Sep 10, 2004 at 18:14 UTC | |
by tradez (Pilgrim) on Sep 10, 2004 at 19:58 UTC | |
by diotalevi (Canon) on Sep 10, 2004 at 21:19 UTC | |
by tradez (Pilgrim) on Sep 14, 2004 at 19:42 UTC | |
|