The following bug has been logged online:
Bug reference: 4168
Logged by: Francisco Leovey
Email address: fleovey(at)yahoo(dot)com
PostgreSQL version: 8.3.1
Operating system: SuSE Linux 9.2
Description: ECPG refuses datestyle SQL
Details:
if you write
EXEC SQL SET datestyle TO SQL, DMY;
you get ERROR: syntax error at or near "SQL"
But
EXEC SQL SET datestyle TO Postgres, DMY;
works fine