Fix a bug reported by Marco Cassiano and suppress some compiler warnings.
Fix a bug reported by Marco Cassiano and suppress some compiler warnings.

Distrotech/psqlodbc,gavioto/psqlodbc,gavioto/psqlodbc,gavioto/psqlodbc,Distrotech/psqlodbc,Distrotech/psqlodbc,treasure-data/prestogres-odbc,treasure-data/prestogres-odbc,hlinnaka/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,hlinnaka/psqlodbc