Open pplu opened 3 years ago
When using Schema->connect($dsn, $user, $pass, { quote_char => '`' } (https://metacpan.org/pod/DBIx::Class::Storage::DBI#quote_char), DBIx::Class::ParseError is not capable of parsing the exception:
Schema->connect($dsn, $user, $pass, { quote_char => '`' }
For a duplicate entry I get:
Parsing error string failed at local/lib/perl5/DBIx/Class/ParseError/Parser.pm line 251. DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry 'table' for key 'name' [for Statement "INSERT INTO `table` ( `name`) VALUES ( ? )" with ParamValues: 0='value1'] at lib/Module.pm line 91
When I connect without quote_char, DBIx::Class::ParseError can parse the exceptions.
quote_char
When using
Schema->connect($dsn, $user, $pass, { quote_char => '`' }
(https://metacpan.org/pod/DBIx::Class::Storage::DBI#quote_char), DBIx::Class::ParseError is not capable of parsing the exception:For a duplicate entry I get:
When I connect without
quote_char
, DBIx::Class::ParseError can parse the exceptions.