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/[email protected]
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

+1-1
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

+1-1
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)