Subject: | Updating tables return errors with PostgreSQL |
Setting the SQL::Abstract argument quote_char to the backtick character ('`') doesn't work with PostgreSQL.
When submitting a change to the database, the following error is returned:
DBD::Pg::db do failed: ERROR: syntax error at or near "`"
LINE 1: UPDATE `widgets` SET `note` = $1 WHERE ( `id` = $2 )
^ at /.../lib/site_perl/5.12.3/Dancer/Plugin/SimpleCRUD.pm line 358.
Line 358 is:
my $sql = SQL::Abstract->new( quote_char => '`' );
I just removed the quote_char argument and the module started working fine.