SQL:
set datestyle to postgres,us;
prepare stmt as select '02-01-2011'::date::text;
execute stmt;
set datestyle to postgres,euro;
execute stmt;
deallocate stmt;
The results I get with normal debug compilation are:
SET
PREPARE
=A0=A0=A0 text
------------
=A002-01-2011
(1 row)
SET
=A0=A0=A0 text
------------
=A001-02-2011
(1 row)
DEALLOCATE
But with -DCLOBBER_CACHE_ALWAYS and -DRELCACHE_FORCE_RELEASE, I get:
SET
PREPARE
=A0 =A0=A0 text
------------
=A002-01-2011
(1 row)
SET
=A0=A0=A0 text
------------
=A002-01-2011
(1 row)
DEALLOCATE
Which one of those results is correct?
Regards,
Jeff Davis