Subject: | Table/column names are not always quoted during populate |
Date: | Wed, 28 Oct 2015 11:01:37 +0000 |
To: | bug-DBIx-Class-Fixtures [...] rt.cpan.org |
From: | Andrew Beverley <andy [...] andybev.com> |
There is some raw SQL towards the end of populate(), which doesn't quote
table names or columns. This means that populating data fails when these
elements are named such that they require quoting.
The offending code is almost at the end of the populate subroutine in
DBIx/Class/Fixtures.pm:
$self->msg(my $sql = "SELECT setval('${sequence}', (SELECT max($column)
FROM ${table}));");
Thanks,
Andy