laziness, impatience, and hubris | |
PerlMonks |
SQL::Statement confusing literals and identifiersby ikegami (Patriarch) |
on Mar 11, 2008 at 02:52 UTC ( [id://673399]=perlquestion: print w/replies, xml ) | Need Help?? |
ikegami has asked for the wisdom of the Perl Monks concerning the following question: I'm getting an error with DBD::CSV, although it's actually thrown by SQL::Statement:
SQL::Statement doesn't seem to recognize that "set" means set. Unfortunately, set must be quoted since it's a reserved word and SQL::Statement dies complaining of that fact when set is left unquoted. Does anyone have any workarounds for this? Has this been fixed in a newer version? Looks like I'll have to first copy the CSV with different field names. Fortunately, the tool on which I am working is only used to import CSV into a "real database".
Code and data to reproduce: 673399.pl:
Print.csv:
Back to
Seekers of Perl Wisdom
|
|