@@ -494,7 +494,7 @@ soon.)
494
494
<function>PQdb</function>
495
495
Returns the database name of the connection.
496
496
<synopsis>
497
- const char *PQdb(const PGconn *conn)
497
+ char *PQdb(const PGconn *conn)
498
498
</synopsis>
499
499
PQdb and the next several functions return the values established
500
500
at connection. These values are fixed for the life of the PGconn
@@ -507,7 +507,7 @@ object.
507
507
<function>PQuser</function>
508
508
Returns the user name of the connection.
509
509
<synopsis>
510
- const char *PQuser(const PGconn *conn)
510
+ char *PQuser(const PGconn *conn)
511
511
</synopsis>
512
512
</para>
513
513
</listitem>
@@ -517,7 +517,7 @@ const char *PQuser(const PGconn *conn)
517
517
<function>PQpass</function>
518
518
Returns the password of the connection.
519
519
<synopsis>
520
- const char *PQpass(const PGconn *conn)
520
+ char *PQpass(const PGconn *conn)
521
521
</synopsis>
522
522
</para>
523
523
</listitem>
@@ -527,7 +527,7 @@ const char *PQpass(const PGconn *conn)
527
527
<function>PQhost</function>
528
528
Returns the server host name of the connection.
529
529
<synopsis>
530
- const char *PQhost(const PGconn *conn)
530
+ char *PQhost(const PGconn *conn)
531
531
</synopsis>
532
532
</para>
533
533
</listitem>
@@ -537,7 +537,7 @@ const char *PQhost(const PGconn *conn)
537
537
<function>PQport</function>
538
538
Returns the port of the connection.
539
539
<synopsis>
540
- const char *PQport(const PGconn *conn)
540
+ char *PQport(const PGconn *conn)
541
541
</synopsis>
542
542
</para>
543
543
</listitem>
@@ -547,7 +547,7 @@ const char *PQport(const PGconn *conn)
547
547
<function>PQtty</function>
548
548
Returns the debug tty of the connection.
549
549
<synopsis>
550
- const char *PQtty(const PGconn *conn)
550
+ char *PQtty(const PGconn *conn)
551
551
</synopsis>
552
552
</para>
553
553
</listitem>
@@ -557,7 +557,7 @@ const char *PQtty(const PGconn *conn)
557
557
<function>PQoptions</function>
558
558
Returns the backend options used in the connection.
559
559
<synopsis>
560
- const char *PQoptions(const PGconn *conn)
560
+ char *PQoptions(const PGconn *conn)
561
561
</synopsis>
562
562
</para>
563
563
</listitem>
@@ -602,7 +602,7 @@ ConnStatusType PQstatus(const PGconn *conn)
602
602
Returns the error message most recently generated by
603
603
an operation on the connection.
604
604
<synopsis>
605
- const char *PQerrorMessage(const PGconn* conn);
605
+ char *PQerrorMessage(const PGconn* conn);
606
606
</synopsis>
607
607
</para>
608
608
@@ -790,7 +790,7 @@ exposes a bug in the client software.
790
790
Converts the enumerated type returned by PQresultStatus into
791
791
a string constant describing the status code.
792
792
<synopsis>
793
- const char *PQresStatus(ExecStatusType status);
793
+ char *PQresStatus(ExecStatusType status);
794
794
</synopsis>
795
795
</para>
796
796
</listitem>
@@ -801,7 +801,7 @@ const char *PQresStatus(ExecStatusType status);
801
801
returns the error message associated with the query, or an empty string
802
802
if there was no error.
803
803
<synopsis>
804
- const char *PQresultErrorMessage(const PGresult *res);
804
+ char *PQresultErrorMessage(const PGresult *res);
805
805
</synopsis>
806
806
Immediately following a <function>PQexec</function> or <function>PQgetResult</function>
807
807
call, <function>PQerrorMessage</function> (on the connection) will return the same
@@ -855,7 +855,7 @@ extracts data from a <acronym>BINARY</acronym> cursor.
855
855
Returns the field (attribute) name associated with the given field index.
856
856
Field indices start at 0.
857
857
<synopsis>
858
- const char *PQfname(const PGresult *res,
858
+ char *PQfname(const PGresult *res,
859
859
int field_index);
860
860
</synopsis>
861
861
</para>
@@ -931,9 +931,9 @@ int PQfmod(const PGresult *res,
931
931
of a PGresult.
932
932
Tuple and field indices start at 0.
933
933
<synopsis>
934
- const char* PQgetvalue(const PGresult *res,
935
- int tup_num,
936
- int field_num);
934
+ char* PQgetvalue(const PGresult *res,
935
+ int tup_num,
936
+ int field_num);
937
937
</synopsis>
938
938
For most queries, the value returned by <function>PQgetvalue</function>
939
939
is a null-terminated <acronym>ASCII</acronym> string representation
@@ -991,7 +991,7 @@ int PQgetisnull(const PGresult *res,
991
991
Returns the command status string from the SQL command that
992
992
generated the PGresult.
993
993
<synopsis>
994
- const char * PQcmdStatus(const PGresult *res);
994
+ char * PQcmdStatus(const PGresult *res);
995
995
</synopsis>
996
996
</para>
997
997
</listitem>
@@ -1001,7 +1001,7 @@ const char * PQcmdStatus(const PGresult *res);
1001
1001
<function>PQcmdTuples</function>
1002
1002
Returns the number of rows affected by the SQL command.
1003
1003
<synopsis>
1004
- const char * PQcmdTuples(const PGresult *res);
1004
+ char * PQcmdTuples(const PGresult *res);
1005
1005
</synopsis>
1006
1006
If the <acronym>SQL</acronym> command that generated the
1007
1007
PGresult was INSERT, UPDATE or DELETE, this returns a
@@ -1032,7 +1032,7 @@ Oid PQoidValue(const PGresult *res);
1032
1032
inserted, if the <acronym>SQL</acronym> command was an INSERT.
1033
1033
Otherwise, returns an empty string.
1034
1034
<synopsis>
1035
- const char * PQoidStatus(const PGresult *res);
1035
+ char * PQoidStatus(const PGresult *res);
1036
1036
</synopsis>
1037
1037
The function is deprecated in favor of <function>PQoidValue</function>
1038
1038
and is not thread-safe.
@@ -1050,25 +1050,25 @@ void PQprint(FILE* fout, /* output stream */
1050
1050
const PQprintOpt *po);
1051
1051
1052
1052
struct {
1053
- int header; /* print output field headings and row count */
1054
- int align; /* fill align the fields */
1055
- int standard; /* old brain dead format */
1056
- int html3; /* output html tables */
1057
- int expanded; /* expand tables */
1058
- int pager; /* use pager for output if needed */
1053
+ pqbool header; /* print output field headings and row count */
1054
+ pqbool align; /* fill align the fields */
1055
+ pqbool standard; /* old brain dead format */
1056
+ pqbool html3; /* output html tables */
1057
+ pqbool expanded; /* expand tables */
1058
+ pqbool pager; /* use pager for output if needed */
1059
1059
char *fieldSep; /* field separator */
1060
1060
char *tableOpt; /* insert to HTML <table ...> */
1061
1061
char *caption; /* HTML <caption> */
1062
1062
char **fieldName; /* null terminated array of replacement field names */
1063
1063
} PQprintOpt;
1064
1064
</synopsis>
1065
-
1066
1065
This function was formerly used by <application>psql</application>
1067
1066
to print query results, but this is no longer the case and this
1068
- function is no longer supported.
1067
+ function is no longer actively supported.
1069
1068
</para>
1070
1069
</listitem>
1071
1070
1071
+ </listitem>
1072
1072
<listitem>
1073
1073
<para>
1074
1074
<function>PQclear</function>
0 commit comments