PQServerVersion should be PQserverVersion also. I've fixed both typos in SVN.
Thomas Mueller wrote: > Aaron Stone wrote: > >>On Tue, Jul 26, 2005, Igor Stroh <[EMAIL PROTECTED]> said: >> >>>Thomas Mueller wrote: >>> >>>>dbpgsql.c: In function `db_connect': >>>>dbpgsql.c:80: warning: implicit declaration of function `PQServerVersion' >>>>dbpgsql.c:83: warning: implicit declaration of function >>>>`pg_encoding_to_char' >>>>dbpgsql.c:83: warning: implicit declaration of function `PGclientEncoding' >> >>Crud. What do we have on 7.x for testing the encoding types? > > > Oh there is a typo: you used PGclientEncoding, this should be > PQclientEncoding and exists on 7.4 as well. > But PQServerVersion() doesn't exist and I found nothing else. > > Maybe you can use a sql query: > > dbmail=# \encoding > LATIN1 > dbmail=# select VERSION(); > version > ------------------------------------------------------------------------------------------- > PostgreSQL 8.0.3 on i386-pc-linux-gnu, compiled by GCC cc (GCC) 3.3.5 > (Debian 1:3.3.5-12) > > dbmail=# select VERSION(); > version > ------------------------------------------------------------------------------------------- > PostgreSQL 7.4.7 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc > (GCC) 3.3.5 (Debian 1:3.3.5-12) > > > Thomas > > _______________________________________________ > Dbmail-dev mailing list > Dbmail-dev@dbmail.org > http://twister.fastxs.net/mailman/listinfo/dbmail-dev > -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl