Fri Jun 20 13:23:07 CEST 2003
- Enabled constants in using clause.
+
+Fri Jun 20 15:34:29 CEST 2003
+
+ - For Informix compatibility we have to accept a "free ".
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
return (ECPGconnect(lineno, informix_name, user, passwd, connection_name , autocommit));
}
+bool
+ECPGdeallocate_informix(int lineno, char *name)
+{
+ ECPGdeallocate_one(lineno, name);
+
+ /* Just ignore all errors since we do not know the list of cursors we
+ * are allowed to free. We have to trust that the software. */
+ return true;
+}
+
static struct var_list
{
int number;
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.2 2003/06/15 04:07:58 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.3 2003/06/20 13:36:34 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
/* handle the EXEC SQL DEALLOCATE PREPARE statement */
bool
ECPGdeallocate(int lineno, char *name)
+{
+ bool ret = ECPGdeallocate_one(lineno, name);
+
+ if (!ret)
+ ECPGraise(lineno, ECPG_INVALID_STMT, name);
+
+ return ret;
+
+}
+
+bool
+ECPGdeallocate_one(int lineno, char *name)
{
struct prepared_statement *this,
*prev;
ECPGfree(this);
return true;
}
- ECPGraise(lineno, ECPG_INVALID_STMT, name);
return false;
}
extern void ldchar(char *, int, char *);
extern bool ECPGconnect_informix(int, const char *, const char *, const char *, const char *, int);
+extern bool ECPGdeallocate_informix(int, char *);
extern void ECPG_informix_set_var(int, void *, int);
extern void *ECPG_informix_get_var(int);
bool ECPGdisconnect(int, const char *);
bool ECPGprepare(int, char *, char *);
bool ECPGdeallocate(int, char *);
+bool ECPGdeallocate_one(int, char *);
bool ECPGdeallocate_all(int);
char *ECPGprepared_statement(char *);
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.235 2003/06/20 12:00:59 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.236 2003/06/20 13:36:34 meskes Exp $ */
/* Copyright comment */
%{
}
| ECPGFree
{
- fprintf(yyout, "{ ECPGdeallocate(__LINE__, \"%s\");", $1);
+ if (compat == ECPG_COMPAT_INFORMIX)
+ fprintf(yyout, "{ ECPGdeallocate_informix(__LINE__, \"%s\");", $1);
+ else
+ fprintf(yyout, "{ ECPGdeallocate(__LINE__, \"%s\");", $1);
whenever_action(2);
free($1);
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)