RE: Why isn't LIMIT functionality included in CDBI?

[prev] [thread] [next] [Date index for 2004/05/25]

From: Jim Helm
Subject: RE: Why isn't LIMIT functionality included in CDBI?
Date: 06:29 on 25 May 2004
This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C441E6.FE3D24C0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

I must have missed the discussion on adding LIMIT/OFFSET to AS or
SQL::Abstract... Or I might not have start down that path myself.

I've posted a beginning at perlmonks
http://www.perlmonks.org/index.pl?node_id=356028.  I've e-mailed
Tatsuhiko Miyagawa to see if he's amenable to a patch I'm working on to
allow for extensions/plugins to AbstractSearch - so it would be easier
to subclass rather then doing a bulk copy of his code.  My first pass at
this is using a callback, but I'm open to anything that works well.

I'm attaching what I have so far, including a
Class::DBI::Plugin::Aggregates discussed here:
http://www.perlmonks.org/index.pl?node_id=354690 and here:
http://www.perlmonks.org/index.pl?node_id=354794(no pod yet).
Comments/criticism are welcome either here on the list or on PM.   It's
not quite production ready, but it's functional. Once I have it somewhat
stable (not tweaking things anymore) I'll make a full CPAN distribution
out of them, and a real patch to AbstractSearch.

Thanks.

--Jim 

> -----Original Message-----
> From: Edward J. Sabol [mailto:sabol@xxxxxxxx.xxxx.xxxx.xxx] 
> Sent: Friday, May 21, 2004 7:29 PM
> To: karjala_lists@xxxxxxx.xxx
> Cc: cdbi-talk@xxxxxx.xxxxx.xxx
> Subject: Re: Why isn't LIMIT functionality included in CDBI?
> 
> 
> > Why isn't LIMIT functionality included in CDBI?
> 
> LIMIT is not part of the SQL standard. If it's supported 
> anywhere, it should
> be in a database-specific module since it's database-specific SQL.
> 
> > Perhaps it should be implemented somewhere in Class::DBI::mysql?
> 
> There's been some discussion of that and also some discussion 
> of extending
> CDBI::AbstractSearch and SQL::Abstract to support LIMIT. Feel 
> free to take a
> crack at it. I'm sure other MySQL users would appreciate it.
> 

------=_NextPart_000_0011_01C441E6.FE3D24C0
Content-Type: application/octet-stream;
	name="cdbi.tar.gz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Qb2b/
fXwz76dHgMbAk4ioFPuMFjnQX2sv/LMjQYHt/4JY/c+5eKuKb3yurrpb+ZWG3s87WnuqjZR33Fqh
e5S94/2OCfmfqZvbcCut0nkm97kSPO360z3QRWxmjFt2+LXe6W3Bb70s+J0uChaXBI+4JPh/ev+v
6vsX3fqiW/+abv1P330u+sgH+shFo7gYi7EYi/GS43/z3KZGADQAAA==

------=_NextPart_000_0011_01C441E6.FE3D24C0--

Why isn't LIMIT functionality included in CDBI?
Alexander Karelas 17:33 on 21 May 2004

Re: Why isn't LIMIT functionality included in CDBI?
Edward J. Sabol 02:28 on 22 May 2004

RE: Why isn't LIMIT functionality included in CDBI?
Jim Helm 06:29 on 25 May 2004

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