diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-02 16:15:53 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-02 16:15:53 +0000 |
commit | 89f6443ca30c2c4b666f7368badabcefa8c3b627 (patch) | |
tree | 8fb9f8decb16ab5b0951ed3cce7fa1ccedce9129 /src/interfaces/ecpg/lib/execute.c | |
parent | e05f15483b2e4d36397b04fa9951680433a5803f (diff) | |
download | postgresql-89f6443ca30c2c4b666f7368badabcefa8c3b627.tar.gz postgresql-89f6443ca30c2c4b666f7368badabcefa8c3b627.zip |
In the meaning of bug-fix, the patch is not needed. Because you
have already modified "next_insert()" in 7.0-ecpglib. However
in the meaning of speed-up, the patch will be needed.
--
Regards,
SAKAIDA Masaaki -- Osaka, Japan
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/lib/execute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c index 6335af437e2..de27637ea76 100644 --- a/src/interfaces/ecpg/lib/execute.c +++ b/src/interfaces/ecpg/lib/execute.c @@ -377,6 +377,7 @@ ECPGexecute(struct statement * stmt) char *tobeinserted = NULL; char *p; char buff[20]; + int hostvarl = 0; /* * Some special treatment is needed for records since we want @@ -701,7 +702,7 @@ ECPGexecute(struct statement * stmt) return false; strcpy(newcopy, copiedquery); - if ((p = next_insert(newcopy)) == NULL) + if ((p = next_insert(newcopy + hostvarl)) == NULL) { /* @@ -714,6 +715,7 @@ ECPGexecute(struct statement * stmt) else { strcpy(p, tobeinserted); + hostvarl = strlen(newcopy); /* * The strange thing in the second argument is the rest of the @@ -993,7 +995,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...) * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.11 2000/09/26 11:41:43 meskes Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.12 2000/10/02 16:15:53 momjian Exp $ */ PGconn *ECPG_internal_get_connection(char *name); |