"be consistent" | |
PerlMonks |
Capturing warnings from DBD:PGby HeadScratcher (Novice) |
on Nov 15, 2015 at 09:57 UTC ( [id://1147720]=perlquestion: print w/replies, xml ) | Need Help?? |
HeadScratcher has asked for the wisdom of the Perl Monks concerning the following question: Hi I'm hoping someone can help with this? I'm executing code similar to the code bellow (Not actual but it replicates the problem) I'm inserting point data into a PostgreSQL/PostGIS database I spotted this warning and managed to hit the keyboard pause button before it disappeared of the screen. "WARNING: OGC WKT expected, EWKT provided - use GeomFromEWKT() for this" The error was caused by badly formatted coordinates that is secondary and will need human intervention to resolve! My question is how do I trap the warning so I can then do something sensible with the problem record(s). The database doesn’t return an error through DBI->errstr but returns a non existent lastID I thought it was Perl warnings but that code doesn’t fire I’m using version 3.5.1 of DBD::PG
Back to
Seekers of Perl Wisdom
|
|