Skip to content

Commit a9f301d

Browse files
committed
Fix format truncation issue from ECPG test
This fixes one warning generated by GCC and present in the test case array part of ECPG. This likely got missed in past fixes like 3a4b891 because the compilation of those tests is not done by default. Reported-by: Sergei Kornilov Discussion: https://postgr.es/m/14951331562847675@sas2-a1efad875d04.qloud-c.yandex.net
1 parent 6ae4e8e commit a9f301d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interfaces/ecpg/test/expected/sql-array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ main (void)
156156
ECPGdebug(1, stderr);
157157

158158
for (j = 0; j < 10; j++) {
159-
char str[20];
159+
char str[28];
160160
numeric *value;
161161
interval *inter;
162162

src/interfaces/ecpg/test/sql/array.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ EXEC SQL END DECLARE SECTION;
3434
ECPGdebug(1, stderr);
3535

3636
for (j = 0; j < 10; j++) {
37-
char str[20];
37+
char str[28];
3838
numeric *value;
3939
interval *inter;
4040

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy