10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db3c4c3 commit c7dea3aCopy full SHA for c7dea3a
src/interfaces/libpq++/pgdatabase.cc
@@ -10,7 +10,7 @@
10
* Copyright (c) 1994, Regents of the University of California
11
*
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.7 1999/10/06 03:00:16 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.8 1999/10/13 16:46:28 momjian Exp $
14
15
*-------------------------------------------------------------------------
16
*/
@@ -66,7 +66,7 @@ int PgDatabase::CmdTuples()
66
char *a;
67
68
a = (char *)PQcmdTuples(pgResult);
69
- if(NULL == a) return -1;
+ if(!a[0]) return -1;
70
71
return atoi(a);
72
}
0 commit comments