Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix format truncation issue from ECPG test
authorMichael Paquier <michael@paquier.xyz>
Fri, 2 Aug 2019 00:51:12 +0000 (09:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 2 Aug 2019 00:51:12 +0000 (09:51 +0900)
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

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

index f5eb73d185283cd622db1295782e322f35c7e595..e48f5fac670dfcf783fa17a1a6a9cb4f04b59860 100644 (file)
@@ -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;
 
index 15c9cfa5f72f7ae5bbc3699d520d833748043a95..8ca9992e47a83e5aa97fb4b5d4cf21e83c59f5a7 100644 (file)
@@ -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;