*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.68 1997/06/01 15:53:24 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.69 1997/06/02 03:04:50 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
break;
case PGRES_EMPTY_QUERY:
*success_p = true;
+ PQclear(results);
break;
case PGRES_COMMAND_OK:
*success_p = true;
if (!settings->quiet)
fprintf(stdout, "%s\n", PQcmdStatus(results));
+ PQclear(results);
break;
case PGRES_COPY_OUT:
*success_p = true;
handleCopyOut(results, settings->quiet, stdout);
}
+ PQclear(results);
break;
case PGRES_COPY_IN:
*success_p = true;
handleCopyIn(results, false, copystream);
else
handleCopyIn(results, !settings->quiet, stdin);
+ PQclear(results);
break;
case PGRES_NONFATAL_ERROR:
case PGRES_FATAL_ERROR:
notify->relname, notify->be_pid);
free(notify);
}
- PQclear(results);
}
}