[prev] [thread] [next] [Date index for 2005/06/20]
------=_Part_2471_28317525.1119299265867 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 6/20/05, Andy Grundman <andy@xxxxxxxxxx.xxx> wrote: >=20 > Drew Taylor wrote: > > (Crossposted to CDBI and DFV lists in the hope that someone has an=20 > answer) > > > > I'm trying to use Class::DBI::FromForm with a new application and am > > running into consistent problems with the output from > > D::FV::Results::valid(). The problem arises in > > C::DBI::FromForm::_run_update(), specifically ~line 73: > > > > my $val =3D $results->valid($col); > > > > According to the docs, valid() returns a scalar in scalar context and a= n > > array in list context. The problem is that the scalar value being > > returned is an array ref with a single value instead of the expected > > scalar. This obviously causes problems when update() is called on my > > CDBI object. >=20 > This looks like it might be a DFV bug or bug in your application. I've > never had any problems using FromForm 0.03 with DFV (in Catalyst). I suspect a DFV bug myself because I can recreate it so easily. FromForm is= =20 so dead simple it would be tough to have an error there. :-) It doesn't look like your app does this, but FYI FromForm is not > designed to be used if you have multiple values for any parameters >=20 No multiple value parameters are used in this application. Drew --=20 ---------------------------------------------------------------- Drew Taylor * Web development & consulting Email: drew@xxxxxxxxxx.xxx * Site implementation & hosting Web : www.drewtaylor.com <http://www.drewtaylor.com> *=20 perl/mod_perl/DBI/mysql/postgres ---------------------------------------------------------------- ------=_Part_2471_28317525.1119299265867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 6/20/05, <b class=3D"gmail_sendername">Andy Grundman</b> <<a href=3D"= mailto:andy@xxxxxxxxxx.xxx">andy@xxxxxxxxxx.xxx</a>> wrote:<div><span cl= ass=3D"gmail_quote"></span><blockquote class=3D"gmail_quote" style=3D"borde= r-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-le= ft: 1ex;"> Drew Taylor wrote:<br>> (Crossposted to CDBI and DFV lists in the hope t= hat someone has an answer)<br>><br>> I'm trying to use Class::DBI::Fr= omForm with a new application and am<br>> running into consistent proble= ms with the output from <br>> D::FV::Results::valid(). The problem arises in<br>> = C::DBI::FromForm::_run_update(), specifically ~line 73:<br>><br>>&nbs= p; my $val =3D $results->valid($col);<br>><br>> According to= the docs, valid() returns a scalar in scalar context and an <br>> array in list context. The problem is that the scalar value being<= br>> returned is an array ref with a single value instead of the expecte= d<br>> scalar. This obviously causes problems when update() is called on= my <br>> CDBI object.<br><br>This looks like it might be a DFV bug or bug i= n your application. I've<br>never had any problems using FromFor= m 0.03 with DFV (in Catalyst).</blockquote><div><br> I suspect a DFV bug myself because I can recreate it so easily. FromForm is so dead simple it would be tough to have an error there. :-)<br= > <br> </div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb= (204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It doesn't = look like your app does this, but FYI FromForm is not<br>designed to be use= d if you have multiple values for any parameters <br></blockquote></div><br> No multiple value parameters are used in this application.<br><br>Drew<br>-= - <br>----------------------------------------------------------------<br> Drew Taylor &nb= sp; * Web development & consulting<br> Email: <a href=3D"mailto:= drew@xxxxxxxxxx.xxx">drew@xxxxxxxxxx.xxx</a> * Site i= mplementation & hosting<br> Web : <a href=3D"http://www.drew= taylor.com">www.drewtaylor.com</a> * perl/mod_perl/D= BI/mysql/postgres <br> ---------------------------------------------------------------- ------=_Part_2471_28317525.1119299265867--
Problem with Class::DBI::FromForm & Data::FormValidator
|
Re: Problem with Class::DBI::FromForm & Data::FormValidator
|
Re: Problem with Class::DBI::FromForm & Data::FormValidator
|
Generated at 16:35 on 28 Jul 2005 by mariachi v0.52