From: | Andreas Hauck <Andreas(dot)Hauck(at)earthling(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | minor improvement to libpq++ ... |
Date: | 1998-06-18 15:48:32 |
Message-ID: | Pine.OSF.3.96.980618173429.32483A-100000@alpha2.tphys.physik.uni-tuebingen.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi y'all,
to unify the framework of the look an feeling of c++ programs relying on
libpq++ I propose to migrate to a consistant use of 'string' to represent any
text rather than 'char *'.
Especially I refer to PgConnection::Exec(char *), ExecCommandOk() and
ExecTuplesOk(). It is very easy to switch over to the use of strings: in the
headerfiles only (char * --> string) has to be changed and in the
corresponding c++ files, the call to the c-functions becomes e.g.
PQexec(pgConn, query) --> PQexec(pgConn, query.c_str()).
The old style call via 'char *' would still be possible, since 'char *' is
automatically convertet to 'string'.
Although I could easily change this for myself, I think it would be
appropriate to include it in an upcoming release since it definitely results
in a improved and more consistent handling of libpq++.
Please cc: any comments or replys to 'Andreas(dot)Hauck(at)earthling(dot)net'.
Cheers, Andreas
//////////////////////////////////////////////////////////////////////////////
. . . . . . ... Andreas Hauck
____ : Inst. fuer Theor. Physik
__nn__ _______ ________ ____ :_:____U Auf der Morgenstelle 14
:____:-:_____:-:______:-:___|-:_______) 72076 Tuebingen
__oo__oo_oo___oo_oo____oo_oo_oo_ooOOOOoo|\___________________________________
phone : +49 (0) 7071/29-74131 * fax : +49 (0) 7071/29-5850
e-mail : Andreas(dot)Hauck(at)earthling(dot)net
http://homepages.uni-tuebingen.de/andreas.hauck
From | Date | Subject | |
---|---|---|---|
Next Message | Charles Bennett | 1998-06-18 17:35:37 | Re: [BUGS] Re: [HACKERS] pg_dump error |
Previous Message | Lendvary Gyorgy | 1998-06-18 13:43:13 | cursors and other dragons |