[Dbix-class] quote char works with sorting without breaking too much!

A. Pagaltzis pagaltzis at gmx.de
Fri Jun 23 01:55:39 CEST 2006


* Ash Berlin <ash at cpan.org> [2006-06-23 01:40]:
> A. Pagaltzis wrote:
> > Errm, seriously: you find that more readable than literal
> > SQL?
> 
> No, just more portable. What if you change the table name but
> forget to change it one place in your code, or add an age
> column to another table etc. etc.

For that you can tokenize the SQL and look for special symbols to
replace. That’s much less work to implement and much easier to
read for the API user.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Dbix-class mailing list