mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +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
448f1871df
commit
58dfe8adb8
@ -8963,7 +8963,9 @@ static int process_statement(const TEXT* string, XSQLDA** sqldap)
|
|||||||
// command-line ISQL only. For WISQL, print the column
|
// command-line ISQL only. For WISQL, print the column
|
||||||
// headings only once.
|
// headings only once.
|
||||||
|
|
||||||
if (printHead && (lines % Pagelength == 0))
|
if (printHead &&
|
||||||
|
(Pagelength && (lines % Pagelength == 0) ||
|
||||||
|
!Pagelength && !lines) )
|
||||||
{
|
{
|
||||||
isqlGlob.printf("%s%s%s%s%s",
|
isqlGlob.printf("%s%s%s%s%s",
|
||||||
NEWLINE,
|
NEWLINE,
|
||||||
|
Loading…
Reference in New Issue
Block a user