diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-07 16:25:42 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-07 16:25:42 -0500 |
commit | eed4356fad84b0fd6e3caa49c7006f401159ac9a (patch) | |
tree | 8c895009729a5075bcd4b4d56b276fdb7cd45a57 /src/interfaces/ecpg/test/expected/preproc-strings.c | |
parent | 1e3868ab3bef5cfa0f4d44a6937a880be7a3a482 (diff) | |
download | postgresql-eed4356fad84b0fd6e3caa49c7006f401159ac9a.tar.gz postgresql-eed4356fad84b0fd6e3caa49c7006f401159ac9a.zip |
Avoid re-using output variables in new ecpg test case.
The buildfarm thinks this leads to memory stomps, though annoyingly
I can't duplicate that here. The existing code in strings.pgc is
doing something that doesn't seem to be sanctioned at all really
by the documentation, but I'm disinclined to try to make that nicer
right now. Let's just declare some more output variables in hopes
of working around it.
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-strings.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-strings.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-strings.c b/src/interfaces/ecpg/test/expected/preproc-strings.c index 87662e01766..a26817968de 100644 --- a/src/interfaces/ecpg/test/expected/preproc-strings.c +++ b/src/interfaces/ecpg/test/expected/preproc-strings.c @@ -24,11 +24,13 @@ + + #line 5 "strings.pgc" #line 1 "strings.h" - char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 ; + char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 , * s7 , * s8 ; /* exec sql end declare section */ #line 5 "strings.pgc" @@ -64,14 +66,14 @@ int main(void) printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select b'0010' , x'019ABcd'", ECPGt_EOIT, - ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char), + ECPGt_char,&(s7),(long)0,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, - ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char), + ECPGt_char,&(s8),(long)0,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);} #line 26 "strings.pgc" - printf("%s %s\n", s1, s2); + printf("%s %s\n", s7, s8); { ECPGdisconnect(__LINE__, "CURRENT");} #line 30 "strings.pgc" |