[DBIx-Class-Devel] [DBIx-Class-Fixtures] use quote_identifiers for problematic column names (#8)

Dagfinn Ilmari Mannsåker notifications at github.com
Mon Nov 30 20:42:09 GMT 2015


> @@ -1402,7 +1402,13 @@ sub populate {
>               $self->msg("- updating sequence $sequence");
>              $rs->result_source->storage->dbh_do(sub {
>                my ($storage, $dbh, @cols) = @_;
> -              $self->msg(my $sql = "SELECT setval('${sequence}', (SELECT max($column) FROM ${table}));");
> +              $self->msg(
> +			 my $sql = "SELECT setval('${sequence}', (SELECT max("

The sequence name needs to be quoted (or even better, passed in via a placeholder) too.

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/DBIx-Class-Fixtures/pull/8/files#r46200326
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20151130/ba6a3c03/attachment.htm>


More information about the DBIx-Class-Devel mailing list