For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2006 > Re: [PEAR] DB_DataObject and specific mysql client encoding









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] DB_DataObject and specific mysql client encoding
Markus Fischer

2006-08-28, 6:58 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Justin Patrin wrote:
> On 8/28/06, Markus Fischer <markus@fischer.name> wrote:
>
> One other solution would be to create a DO (after you set up config,
> of course) then use getDatabaseConnection() to get the DB object, then
> run your query.


You mean, every time and at every place I factor a DataObject, I run
something like

$DO->getDatabaseConnection()->query("SET NAMES ...");

?

But forgeting this at some point seems more error prone than having it
part of DO ...

- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE8weI1nS0RcInK9ARApfYAKDW1Plnc0Wq
yW1KMvs6JRy9mVEjEgCeIqVo
uarvrrQGTrObV6xlSOT1d5c=
=CIrq
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com