mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
Fixed bug CORE-3810 : isql: zero divide + coredump when use "-pag 0" command switch & set heading on inside .sql script
This commit is contained in:
parent
77c6027afd
commit
c036c65e7b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user