[prev] [thread] [next] [Date index for 2005/09/07]
This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --===============1662790738== Content-class: urn:content-classes:message Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="=_pbote1.srv.dsh.at-8394-1126100502-0001-2" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_pbote1.srv.dsh.at-8394-1126100502-0001-2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! I already sent a patch to Tony including a test at the time he released 0.999. The wrote that he will look at it to include in 1.00 but after the controversies on the list Tony never replied about it. -Alex > -----Urspr=FCngliche Nachricht----- > Von: classdbi-bounces@xxxxx.xxxxxxxxxxxxxxxx.xxx [mailto:classdbi- > bounces@xxxxx.xxxxxxxxxxxxxxxx.xxx] Im Auftrag von William Ross > Gesendet: Mittwoch, 7. September 2005 11:34 > An: Kate Yoak > Cc: classdbi@xxxxx.xxxxxxxxxxxxxxxx.xxx > Betreff: Re: [CDBI] Updating a record - slight change proposal >=20 > On 7 Sep 2005, at 02:53, Kate Yoak wrote: >=20 > > <snip> for my $col (keys %$vals) { > > #### ADDING the unless statement here: > > #$self->{__Changed}{$col}++ ; > > $self->{__Changed}{$col}++ unless $self->_attr($col) eq $vals- > > >{$col}; > > } > > $self->_attribute_store($vals); > > } > > > > In other words, don't mark something as changed if it hasn't really > > changed. > > > > What did I break? >=20 > The existing or new value will often be an object, which will often > but not always stringify to the value that would be stored in the > database, so testing with 'eq' isn't always going to work. You'd > really have to use the same deflation mechanism as cdbi does when > updating. I would imagine that Tony considered this before taking the > easy route, but since he's not here you'd have to ask him directly. >=20 > I'm afraid you'll probably have to grep for primary keys when using > set(). You could either do it beforehand or by adding a > normalize_column_values() method in subclass: >=20 > sub normalize_column_values { > my ($self, $column_values) =3D @_; > delete $column_values->{$_} for $self->primary_columns; > } >=20 > I do think you've found a bug, though. The real fix is probably to > prevent _attribute_delete() from emptying primary key columns, which > imho aren't really attributes in that sense anyway. >=20 > best, >=20 > will >=20 >=20 > _______________________________________________ > ClassDBI mailing list > ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx > http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi --=_pbote1.srv.dsh.at-8394-1126100502-0001-2 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIISkjCCApow ggIDoAMCAQICASQwDQYJKoZIhvcNAQEEBQAwcTELMAkGA1UEBhMCREUxHDAaBgNVBAoTE0RldXRz Y2hlIFRlbGVrb20gQUcxHzAdBgNVBAsTFlQtVGVsZVNlYyBUcnVzdCBDZW50ZXIxIzAhBgNVBAMT GkRldXRzY2hlIFRlbGVrb20gUm9vdCBDQSAxMB4XDTk5MDcwOTExMzQwMFoXDTE5MDcwOTIzNTkw MFowcTELMAkGA1UEBhMCREUxHDAaBgNVBAoTE0RldXRzY2hlIFRlbGVrb20gQUcxHzAdBgNVBAsT FlQtVGVsZVNlYyBUcnVzdCBDZW50ZXIxIzAhBgNVBAMTGkRldXRzY2hlIFRlbGVrb20gUm9vdCBD QSAxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDQ3ZsMoBdERA+vIUBzZ1bwPmloEbrZN/KB rsMkrGmhzfymGFVW/4ufMsHb53gsOdtggUGl79PNgI0YPOJSDAuf92Se5aDwuGFi9L/go9pYK/0V BGu9Op58nfI92OSVw+xOwvFlqwxL7EeCW+LhUHXY9mG0GFztM6BLHoP7T4S8eQIDAQABo0IwQDAd BgNVHQ4EFgQUFDHif5zKEpX78XAg200oE3FCYcYwDwYDVR0TBAgwBgEB/wIBBTAOBgNVHQ8BAf8E BAMCAQYwDQYJKoZIhvcNAQEEBQADgYEAnR0Q+pPIHWQgRV6cbwVto1J/p6iHZbNnmjaGeHIWFf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7FqM DDPzZGBMAcq2ShHojvxfl/QC2UUOCADxmD1OEN+5BSpAuGmazkKRdBnvUXelVIp1BKYFN+77N04a Onqgw6DqWqqo7ILQMzdyPGB1aw6+6FlzgREkOGEQvTB++b+1zO/vl101klcy3+T3rpRUFphEVmyF vmd8k/bBiX3XAAAAAAAA --=_pbote1.srv.dsh.at-8394-1126100502-0001-2-- --===============1662790738== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ClassDBI mailing list ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi --===============1662790738==--
[CDBI] Updating a record - slight change proposal
|
Re: [CDBI] Updating a record - slight change proposal
|
Re: [CDBI] Updating a record - slight change proposal
|
Re: [CDBI] Updating a record - slight change proposal
|
Re: [CDBI] Updating a record - slight change proposal
|
RE: [CDBI] Updating a record - slight change proposal
|
Re: [CDBI] Updating a record - slight change proposal
|
Generated at 10:29 on 10 Oct 2005 by mariachi v0.52