in reply to Re: DBD:Pg pg_putcopydata
in thread DBD:Pg pg_putcopydata
This is a very interesting approach and I had not considered the possibility. I am hoping you might provide a little insight into the the combine function. I am a little confused by the variable @$row in particular. $csv is a scalar, as is $row, however I believe $csv->combine is expecting an array. I would have guessed some work would have needed to be done to split the scalar into an array.
This is what happens when a T-SQL SPROC junky decides to break out of the safe bubble I had been in for years and learn some new tricks in an open environment!
Also, what situations would you recommend this method over the first example? I personally like the idea of processing it as a CSV due to the fact I built the arrays to mimic a delimited flat file, simply because it was an easy way to express my intended end result.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD:Pg pg_putcopydata
by james2vegas (Chaplain) on Jul 01, 2010 at 18:40 UTC | |
by LiquidT (Initiate) on Jul 02, 2010 at 07:39 UTC |