diff --git a/src/isql/isql.epp b/src/isql/isql.epp index d095c24a3c..381ff4400e 100644 --- a/src/isql/isql.epp +++ b/src/isql/isql.epp @@ -8813,7 +8813,9 @@ static int process_statement(const TEXT* string, XSQLDA** sqldap) // command-line ISQL only. For WISQL, print the column // headings only once. - if (printHead && (lines % Pagelength == 0)) + if (printHead && + (Pagelength && (lines % Pagelength == 0) || + !Pagelength && !lines) ) { isqlGlob.printf("%s%s%s%s%s", NEWLINE,