shemp has asked for the wisdom of the Perl Monks concerning the following question:
original approach - strange result
I issue this query, which i generated using a csv db handle quote method on all values being inserted:
And the result in the data file is:INSERT INTO snames VALUES ( '797000','140740413000','KNAACK, RICHARD I +','GRANTEE','5403','','W','','SUNNYSIDE','DR','112N','','','MEQUON',' +WI','53092' )
I get no error of any sort, and i do have PrintError and RaiseError set, and am executing the query in an eval block. Note that things go fine until that first empty field (empty string). Then i get that strange last column, the numbers correspond to numbering the columns, and the data is there too, with the question marks in between. I have the csv_sep_char as a comma, and the csv_quote_char as double quote.797000,140740413000,"HAGEN, RONALD",GRANTOR,5403,'?5?W?6?SUNNYSIDE?7?D +R?8?112N?9?MEQUON?10?WI?11?53092'
797000,140740413000,"HAGEN, RONALD",GRANTOR,5403," ",W," ",SUNNYSIDE,D +R,112N," "," ",MEQUON,WI,53092
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::CSV quote() oddity
by jZed (Prior) on Apr 22, 2005 at 18:02 UTC | |
by shemp (Deacon) on Apr 22, 2005 at 18:17 UTC |