Hummm, right. Thanks. On Feb 17, 7:53 pm, cricket <[email protected]> wrote: > On Thu, Feb 17, 2011 at 12:06 PM, labianchin <[email protected]> wrote: > > Hello, folks. > > > I was doing the formating for date fields in afterFind and > > beforeValidate callback, then I've found a way to do that inside of > > postgresql. > > It's just doing something like that: SET datestyle to 'ISO', > > 'European'; > > > The problem is that this statement would be executed once the database > > connection is establish, in other words I think it would be in the > > connect method of the datasource. > > > I have tried to search a tip to do that without reimplementing (or > > extending) the DboPostgres, but no success. > > > Do you have any ideas of how or where I can execute this statement? > > Do you have access to the postgresql.conf? It can be set there.
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
