Re: [CDBI] new reserved words in 3.0.11?

[prev] [thread] [next] [Date index for 2005/11/03]

From: Patrik Wallstrom
Subject: Re: [CDBI] new reserved words in 3.0.11?
Date: 13:59 on 03 Nov 2005
--===============0019593358==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn"
Content-Disposition: inline


--Yylu36WmvOXNoKYn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, 03 Nov 2005, Christopher H. Laco wrote:

> Patrik Wallstrom wrote:
> > Is the word "type" a new reserved word in the 3 series of Class::DBI?
> >=20
> I hope not. I've to a field named type littered throughout Handel.
> So far, I've only tested  up to 3.0.10...

When I look at it a bit closer it seems like the new accessor_name_for
does something I am not used to. There are some more fields that does
not show up at all. At least if I don't change the accessor name for
that field other than lowercase it like this:


sub accessor_name_for
{
    my($class,$column) =3D @_;
    $column =3D~ s/^(parameter_name|person)_id$/$1/i;
    return lc $column;
}

this is the object...

$VAR1 =3D bless( {
                 'person_id' =3D> undef,
                 'name' =3D> 'example.scalar',
                 'type' =3D> '1',
                 'from_date' =3D> '0000-00-00 00:00:00',
                 'parameter_name_id' =3D> '1',
                 'to_date' =3D> undef
               }, 'SECore::DB::Parameter' );

=2E..and this is the Columns for this object:

$VAR2 =3D bless( {
                 'name' =3D> 'NAME',
                 '_groups' =3D> {
                                'Essential' =3D> 1
                              },
                 'mutator' =3D> 'NAME',
                 'placeholder' =3D> '?',
                 'accessor' =3D> 'name'
               }, 'Class::DBI::Column' );

But ... I don't seem to have an accessor (that I can access anyway)
with the name "name" (or "type" in my previous question). I have only
got accessors for the has_a and has_many in the above
accessor_name_for. I am very confused.

--=20
patrik_wallstrom->foodfight->pawal@xxxxx.xxx->+46-733173956

--Yylu36WmvOXNoKYn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDahfPXP9l7Jnf3xURAgsCAJ9S5b1vnNuYYXgYdo3XEc8pq8cxuwCeLTMX
a2dnygjpzTXJ0MkjsJjorGY=
=BYPG
-----END PGP SIGNATURE-----

--Yylu36WmvOXNoKYn--


--===============0019593358==
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

--===============0019593358==--

(message missing)

[CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 12:33 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Christopher H. Laco 13:43 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 13:59 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Patrik Wallstrom 11:36 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 12:36 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 12:56 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:10 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Jay Strauss 13:31 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:47 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Matt S Trout 13:58 on 03 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
Dave Howorth 13:14 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 13:31 on 04 Nov 2005

Re: [CDBI] new reserved words in 3.0.11?
William Ross 13:28 on 04 Nov 2005

Generated at 20:55 on 09 Nov 2005 by mariachi v0.52