(no followup to [EMAIL PROTECTED], getting a little OT there)
(B
(BOn Tuesday 10 December 2002 16:54, Lee Kindness wrote:
(B> Ian Barwick writes:
(B> > Something along the lines of
(B> > char *PQversion(const PGconn *conn) ?
(B>
(B> Probably:
(B>
(B> int PQversion(const PGconn *conn)
(B>
(B> would be better, and easier to parse? For example the value returned
(B> for 7.3.1 would be 7003001; for 7.4 7004000; for 101.10.2
(B> 101010002. This allows simple numerical tests...
(B
(BSounds logical - I was evidently thinking in Perl ;-).
(B
(BFor reference pg_dump currently parses the SELECT version() string
(Binto an integer thus:
(B
(B7.2 70200
(B7.2.1 70201
(B7.3devel 70300
(B7.3rc1 70300
(B7.3.1 70301
(B7.3.99 70399
(B7.399.399 110299
(B101.10.2 1011002
(B
(B(and just for fun:
(B"11i Enterprise Edition with Bells and Whistles "
(Breturns -1 ;-)
(B
(Bwhich works with minor release numbers of 99
(Band below.
(B
(BIan Barwick
([EMAIL PROTECTED]
(B
(B
(B---------------------------(end of broadcast)---------------------------
(BTIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]