Re: Re: PEAR::DB 1.6.4 problem with quoteSmart()
| From: | Torsten Roehr | Date: | Thu, 01 Jul 2004 08:09:10 +0000 |
| Subject: | Re: Re: PEAR::DB 1.6.4 problem with quoteSmart() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13432@lists.php.net to get a copy of this message | ||
"Aidan Lister" <aidan@php.net> wrote in message
news:20040701074932.26501.qmail@pb1.pair.com...
> Oops, bad example.
>
> You could use an editor which highlights the argument when you click on an
> identifier, that makes it a lot easier.
>
> I still think the benefits
> - non obfuscated query
> - looks exactly like a prepared statement
> - much easier to convert to other languages
> etc
>
> outweigh the few small problems. Having the query in pure SQL rather than
> mixed with PHP definitely makes it easier to debug and much easier read in
> my opinion!
>
> Of course you've got to do what works for you!
Justin and Aidan, thanks for your suggestions. I'll give it a try and see if
it makes things more clear.
Best regards,
Torsten