Closed augensalat closed 4 years ago
Documentation tells that you can set an SQL::Abstract class like this:
SQL::Abstract
my $sql = Mojo::SQLite->new(abstract => SQL::Abstract::Pg->new(name_sep => '.', quote_char => '"'));
This does not work! Proof:
perl -MMojo::SQLite -MSQL::Abstract::Pg -wE 'my $sql = Mojo::SQLite->new(abstract => SQL::Abstract::Pg->new(name_sep => q(.), quote_char => q("))); say ref($sql->abstract)'
Workaround:
perl -MMojo::SQLite -MSQL::Abstract::Pg -wE 'my $sql = Mojo::SQLite->new; $sql->abstract(SQL::Abstract::Pg->new(name_sep => q(.), quote_char => q("))); say ref($sql->abstract)'
Good catch, the Mojo::SQLite constructor does not accept attributes.
Documentation tells that you can set an
SQL::Abstract
class like this:This does not work! Proof:
Workaround: