[DBIx-Class-Devel] Re: [dbix-class] fixes a bug with the
_dequalify_idents piece that
stripped out schema. before a table name (#18)
Kevin L. Kane
notifications at github.com
Thu Mar 7 22:55:37 GMT 2013
The only time this little patch fails is if the alias.column_name is equal to schema.table_name. Now that is a very ugly scenario that should be avoided simply for the sake of clarity, but I see your point that it potentially could come up.
The path to reproduce the problem is this:
my $rs = $schema->resultset('Artist')->find( 1 );
eval { $rs->cds_unordered->delete };
In the CD.pm I changed the table from 'cd' to 'schema_qualified.cd'.
The SQL that will be generated will be 'DELETE FROM cd WHERE ( artist = ? )' even though you have specified schema_qualified.cd as the table name in the result class.
---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/18#issuecomment-14591904
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20130307/ae15f9e1/attachment.htm
More information about the DBIx-Class-Devel
mailing list