Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBIx-Class-DeploymentHandler CPAN distribution.

Report information
The Basics
Id: 92373
Status: resolved
Priority: 0/
Queue: DBIx-Class-DeploymentHandler

People
Owner: frioux [...] gmail.com
Requestors: DOGOFERIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.002208
Fixed in: (no value)



Subject: When using ignore_ddl option any filters specified in sql_translator_args are not respected
Ran into an issue where anonymous subs passed to the filters list of the sql_translator_args were not respected when using the DeploymentHandler's ignore_ddl option. The issue seems to derive from DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm around line 366..in the sub deploy() - an empty hash is passed to _sql_from_yaml() instead of the sqlt_translator_args when ignore_ddl is in play. Attached is a patch file
Subject: DBIx_Class_DeploymentHandler_DeployMethod_SQL_Translator.pm
--- a/lib/perl5/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/perl5/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm 308a309 > my $sqltargs = $self->sql_translator_args; 311c312 < $sql = $self->_sql_from_yaml({}, --- > $sql = $self->_sql_from_yaml($sqltargs,
Thanks, fixed. Will release today.