Subject: | optional foreign key can't be updated to NULL |
Date: | Sun, 17 Apr 2011 06:42:57 +0300 |
To: | bug-DBIx-Class-ResultSet-RecursiveUpdate [...] rt.cpan.org |
From: | Yaroslav Polyakov <develop [...] altersign.com> |
Hi,
I found that recursive update of optional foreign key is not working
as expected from the documentation: http://search.cpan.org/~abraxxa/DBIx-Class-ResultSet-RecursiveUpdate-0.23/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm#Treatment_of_belongs_to_relations
It's impossible to update the foreign key to NULL.
I attach a patch that fixes this issue.
Distribution: DBIx-Class-ResultSet-RecursiveUpdate-0.23
Show quoted text
> perl -v
This is perl 5, version 12, subversion 2 (v5.12.2) built for i386-freebsd-64int
Show quoted text> uname -a
FreeBSD ccc 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Thank you for your attention.
--
Best regards,
Yaroslav mailto:develop@altersign.com
Message body is not shown because sender requested not to inline it.