summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/test4.pgc
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-06-20 13:36:34 +0000
committerMichael Meskes <meskes@postgresql.org>2003-06-20 13:36:34 +0000
commit2cbaaee6c3bd4f41470aa44d6a620de0e93d1036 (patch)
tree014d0850818f0d2326a9eb6c19e49111af5a7b4c /src/interfaces/ecpg/test/test4.pgc
parentd9b2401d909c32eca81c44bf380a3f897e1cbf4e (diff)
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
Diffstat (limited to 'src/interfaces/ecpg/test/test4.pgc')
-rw-r--r--src/interfaces/ecpg/test/test4.pgc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/test4.pgc b/src/interfaces/ecpg/test/test4.pgc
index 31d4d278e58..7a4c49df53f 100644
--- a/src/interfaces/ecpg/test/test4.pgc
+++ b/src/interfaces/ecpg/test/test4.pgc
@@ -13,13 +13,14 @@ EXEC SQL BEGIN DECLARE SECTION;
int *did = &i;
int a[10] = {9,8,7,6,5,4,3,2,1,0};
char text[10] = "klmnopqrst";
- char *t = "uvwxyz1234";
+ char *t = (char *)malloc(10);
double f;
bool b = true;
varchar database[3];
EXEC SQL END DECLARE SECTION;
FILE *dbgs;
+ strcpy(t, "0123456789");
setlocale(LC_ALL, "de_DE");
if ((dbgs = fopen("log", "w")) != NULL)