diff options
author | Michael Paquier | 2019-08-02 00:51:12 +0000 |
---|---|---|
committer | Michael Paquier | 2019-08-02 00:51:12 +0000 |
commit | a9f301df0e76c38d4544477c1b3e5e29d57904e6 (patch) | |
tree | 32434e2c3861069e279bba7708bd5e7c0ea05e53 | |
parent | 6ae4e8eae78e0781633f7b40a1b5cc189bc40923 (diff) |
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]
-rw-r--r-- | src/interfaces/ecpg/test/expected/sql-array.c | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/test/sql/array.pgc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/expected/sql-array.c b/src/interfaces/ecpg/test/expected/sql-array.c index f5eb73d1852..e48f5fac670 100644 --- a/src/interfaces/ecpg/test/expected/sql-array.c +++ b/src/interfaces/ecpg/test/expected/sql-array.c @@ -156,7 +156,7 @@ main (void) ECPGdebug(1, stderr); for (j = 0; j < 10; j++) { - char str[20]; + char str[28]; numeric *value; interval *inter; diff --git a/src/interfaces/ecpg/test/sql/array.pgc b/src/interfaces/ecpg/test/sql/array.pgc index 15c9cfa5f72..8ca9992e47a 100644 --- a/src/interfaces/ecpg/test/sql/array.pgc +++ b/src/interfaces/ecpg/test/sql/array.pgc @@ -34,7 +34,7 @@ EXEC SQL END DECLARE SECTION; ECPGdebug(1, stderr); for (j = 0; j < 10; j++) { - char str[20]; + char str[28]; numeric *value; interval *inter; |