File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ extern "C" {
30
30
#include " libpq-fe.h"
31
31
}
32
32
33
- static char rcsid[] = " $Id: libpq++.H,v 1.5 1999/10/04 15:17:06 momjian Exp $" ;
33
+ static char rcsid[] = " $Id: libpq++.H,v 1.6 1999/10/06 03:00:16 momjian Exp $" ;
34
34
35
35
36
36
// ****************************************************************
@@ -79,6 +79,7 @@ public:
79
79
~PgDatabase () {}; // close connection and clean up
80
80
// query result access
81
81
int Tuples ();
82
+ int CmdTuples ();
82
83
int Fields ();
83
84
const char * FieldName (int field_num);
84
85
int FieldNum (const char *field_name);
Original file line number Diff line number Diff line change 10
10
* Copyright (c) 1994, Regents of the University of California
11
11
*
12
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.6 1999/09/28 12:59:29 momjian Exp $
13
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.7 1999/10/06 03:00:16 momjian Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -63,7 +63,12 @@ return PQntuples(pgResult);
63
63
64
64
int PgDatabase::CmdTuples ()
65
65
{
66
- return PQcmdTuples (pgResult);
66
+ char *a;
67
+
68
+ a = (char *)PQcmdTuples (pgResult);
69
+ if (NULL == a) return -1 ;
70
+
71
+ return atoi (a);
67
72
}
68
73
69
74
Original file line number Diff line number Diff line change 13
13
* Copyright (c) 1994, Regents of the University of California
14
14
*
15
15
*
16
- * $Id: pgdatabase.h,v 1.4 1999/09/28 04:49:22 momjian Exp $
16
+ * $Id: pgdatabase.h,v 1.5 1999/10/06 03:00:16 momjian Exp $
17
17
*
18
18
*-------------------------------------------------------------------------
19
19
*/
23
23
24
24
#include " pgconnection.h"
25
25
26
+ #include < stdlib.h>
26
27
27
28
// ****************************************************************
28
29
//
You can’t perform that action at this time.
0 commit comments