Re: Method Names (was: Stolen Ideas)

[prev] [thread] [next] [Date index for 2004/08/12]

From: Tony Bowden
Subject: Re: Method Names (was: Stolen Ideas)
Date: 15:54 on 12 Aug 2004
On Thu, Aug 12, 2004 at 10:04:17AM -0500, Jay Strauss wrote:
> select * from table where upper(first_name) = ?;
> my $builtin = q[upper(first_name)];
> my @rows = $class->search(\$builtin => "BEATLES");

That's not going to cope very well where you have custom accessor
names...

> my $str = q[sysdate - 15];
> my @rows = $class->search(last_modified_date => \$str);

This has a little more potential.

> Otherwise I think you will be faced with doing something like
> adding a tag to indicate to CDBI not to mess with the value.  Something
> like:
> my @rows = $class->search(last_modified_date => q[<PRESERVE>sysdate - 15];
> Which I personally think sucks.

That's far far too nasty.

Tony

(message missing)

Method Names (was: Stolen Ideas)
Jay Strauss 14:20 on 11 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tony Bowden 22:14 on 11 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 15:04 on 12 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tony Bowden 15:54 on 12 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 15:11 on 13 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 16:35 on 14 Aug 2004

Pass a DBI Object?
Brian E. Lozier 18:22 on 14 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tim Bunce 11:54 on 18 Aug 2004

Re: Pass a DBI Object?
Branislav Zahradnik 15:04 on 18 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52