[Dbix-class] SQL::Abstract 1.x subqueries patch

Dami Laurent (PJ) laurent.dami at justice.ge.ch
Mon Nov 3 07:24:29 GMT 2008


Hi,

I confirm that subqueries are implemented in the 1.50RC branch (have a look=
 at the L<CHANGES> section).

Concerning tests : SQLA 1.50 often generates less parentheses than previous=
 versions. So the output is equivalent in semantics, but not in surface syn=
tax; as a result, the applications will most probably continue to work , bu=
t the tests do fail because the best they can do is to check the resulting =
SQL syntax.

It would be quite difficult and rather pointless to try to generate exactly=
 the same parentheses as before; so instead, there is a test module SQL::Ab=
stract::Test that implements a test function is_same_sql_bind(..) that comp=
ares SQL statements on abstract level, ignoring unnecessary parentheses. As=
 an example, attached is a a test rewrite for SQL::Abstract::Limit . =


Yes it would be great if somebody could invest some time in testing it agai=
nst DBIx-Class.

Best regards, Laurent Dami


>-----Message d'origine-----
>De : Peter Rabbitson [mailto:rabbit+list at rabbit.us] =

>Envoy=E9 : vendredi, 31. octobre 2008 23:49
>=C0 : Class user and developer list
>Objet : Re: [Dbix-class] SQL::Abstract 1.x subqueries patch
>
>BUCHMULLER Norbert wrote:
>> Hi,
>> =

>> do you still accept patches for SQL::Abstract 1.x, or should =

>I wait for
>> 2.0 to come out instead? (BTW, what's the proposed time =

>frame for that?)
>> =

>
>There is a mostly-working-1.x-rc at
>http://dev.catalyst.perl.org/repos/bast/SQL-Abstract/1.x/branch
>es/1.50_RC.
>Patches should be made against it afaik, although it is very possible
>this particular bit has been already implemented.
>
>Also the branch suffers from major shortage of volunteers. It =

>passes its
>own tests but fails reather hard if subjected to the test suite of
>dbix-class (i.e. added to PERL5LIB before running make test on the dbic
>trunk). So if you can spend some cycles on it, it would be =

>rather fantastic.
>
>Cheers
>
>_______________________________________________
>List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>IRC: irc.perl.org#dbix-class
>SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>Searchable Archive: =

>http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01.sql.t
Type: application/octet-stream
Size: 3970 bytes
Desc: 01.sql.t
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20081103/5a=
0d86a6/01.sql.obj


More information about the DBIx-Class mailing list