From ce3d1a4fbc096d489424847a2f07f63f4ef4f25a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 23 Nov 2006 05:47:48 +0000 Subject: [PATCH] Un-break ecpg regression test. --- .../ecpg/test/expected/pgtypeslib-dt_test2.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c index e5388b6fa8..655a7373a9 100644 --- a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c +++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c @@ -47,7 +47,8 @@ char *dates[] = { "19990108foobar", "January 8, 99 BC", NULL }; -char *times[] = { "0:04", +/* do not conflict with libc "times" symbol */ +static char *times[] = { "0:04", "1:59 PDT", "13:24:40 -8:00", "13:24:40.495+3", @@ -72,22 +73,22 @@ main(void) -#line 51 "dt_test2.pgc" +#line 52 "dt_test2.pgc" date date1 ; -#line 52 "dt_test2.pgc" +#line 53 "dt_test2.pgc" timestamp ts1 , ts2 ; -#line 53 "dt_test2.pgc" +#line 54 "dt_test2.pgc" char * text ; -#line 54 "dt_test2.pgc" +#line 55 "dt_test2.pgc" interval * i1 ; -#line 55 "dt_test2.pgc" +#line 56 "dt_test2.pgc" date * dc ; /* exec sql end declare section */ -#line 56 "dt_test2.pgc" +#line 57 "dt_test2.pgc" int i, j; -- GitLab