Skip to content

Commit 4b4e67f

Browse files
committed
Postfix for #8567: column sepatator in ISQL not printed
1 parent 969ac2c commit 4b4e67f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/isql/isql.epp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7073,8 +7073,9 @@ static unsigned print_item(TEXT** s, const IsqlVar* var, const unsigned length)
70737073
*
70747074
**************************************/
70757075
// We're working under the assumption that length is the maximum number of characters to
7076-
// produce, and that the available buffer is at least 1 byte longer for nul-termination.
7077-
const size_t bufSize = static_cast<size_t>(length) + 1;
7076+
// produce of the value, and that the available buffer is at least 2 bytes longer for
7077+
// a space (column separator) and nul-termination.
7078+
const size_t bufSize = static_cast<size_t>(length) + 2;
70787079
const char* convErr = "Conversion error";
70797080
TEXT d[64];
70807081
TEXT* p = *s;
@@ -8301,7 +8302,7 @@ static unsigned process_message_display(Firebird::IMessageMetadata* message, uns
83018302
else if (isqlGlob.att_charset == CS_UTF8)
83028303
disp_length = MAX(disp_length, namelength * 4);
83038304

8304-
// The total line length
8305+
// The total line length (display length of value + space, i.e. column separator)
83058306
linelength += disp_length + 1;
83068307
}
83078308

0 commit comments

Comments
 (0)