Big -1. This is an application problem. Make the application smarter, not the parser dumber. Prepared statements have been around a long, long time.
Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support