diff options
Diffstat (limited to 'src/interfaces/ecpg/lib/prepare.c')
-rw-r--r-- | src/interfaces/ecpg/lib/prepare.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/lib/prepare.c b/src/interfaces/ecpg/lib/prepare.c index e0960768799..4117454835e 100644 --- a/src/interfaces/ecpg/lib/prepare.c +++ b/src/interfaces/ecpg/lib/prepare.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.10 2001/11/05 17:46:37 momjian Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.11 2001/11/14 11:11:49 meskes Exp $ */ #include "postgres_fe.h" @@ -69,11 +69,11 @@ ECPGprepare(int lineno, char *name, char *variable) return false; } - this = (struct prepared_statement *) ecpg_alloc(sizeof(struct prepared_statement), lineno); + this = (struct prepared_statement *) ECPGalloc(sizeof(struct prepared_statement), lineno); if (!this) return false; - stmt = (struct statement *) ecpg_alloc(sizeof(struct statement), lineno); + stmt = (struct statement *) ECPGalloc(sizeof(struct statement), lineno); if (!stmt) { free(this); @@ -83,14 +83,14 @@ ECPGprepare(int lineno, char *name, char *variable) /* create statement */ stmt->lineno = lineno; stmt->connection = NULL; - stmt->command = ecpg_strdup(variable, lineno); + stmt->command = ECPGstrdup(variable, lineno); stmt->inlist = stmt->outlist = NULL; /* if we have C variables in our statment replace them with '?' */ replace_variables(stmt->command); /* add prepared statement to our list */ - this->name = ecpg_strdup(name, lineno); + this->name = ECPGstrdup(name, lineno); this->stmt = stmt; if (prep_stmts == NULL) |