summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/prepare.c
diff options
context:
space:
mode:
authorMichael Meskes2001-11-14 11:11:49 +0000
committerMichael Meskes2001-11-14 11:11:49 +0000
commit32a4c3008f65deed3f2cb56f8df6fac85b3969f3 (patch)
treef94ae47a8c183b174c6e8da6dc6fc26fa9664e3d /src/interfaces/ecpg/lib/prepare.c
parentebb93323bbf7c62aeff283cd5991071ee8c575fa (diff)
Added Christof's patches.
Diffstat (limited to 'src/interfaces/ecpg/lib/prepare.c')
-rw-r--r--src/interfaces/ecpg/lib/prepare.c10
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)