Commit 89f6443c authored by Bruce Momjian's avatar Bruce Momjian

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
parent e05f1548
...@@ -55,7 +55,7 @@ ENHANCEMENTS ...@@ -55,7 +55,7 @@ ENHANCEMENTS
URGENT URGENT
* Add OUTER joins, left and right[outer](Thomas, Bruce) * -Add OUTER joins, left and right[outer](Tom, Thomas)
* Allow long tuples by chaining or auto-storing outside db (TOAST)(Jan) * Allow long tuples by chaining or auto-storing outside db (TOAST)(Jan)
* Fix memory leak for expressions[memory](Tom?) * Fix memory leak for expressions[memory](Tom?)
......
...@@ -377,6 +377,7 @@ ECPGexecute(struct statement * stmt) ...@@ -377,6 +377,7 @@ ECPGexecute(struct statement * stmt)
char *tobeinserted = NULL; char *tobeinserted = NULL;
char *p; char *p;
char buff[20]; char buff[20];
int hostvarl = 0;
/* /*
* Some special treatment is needed for records since we want * Some special treatment is needed for records since we want
...@@ -701,7 +702,7 @@ ECPGexecute(struct statement * stmt) ...@@ -701,7 +702,7 @@ ECPGexecute(struct statement * stmt)
return false; return false;
strcpy(newcopy, copiedquery); strcpy(newcopy, copiedquery);
if ((p = next_insert(newcopy)) == NULL) if ((p = next_insert(newcopy + hostvarl)) == NULL)
{ {
/* /*
...@@ -714,6 +715,7 @@ ECPGexecute(struct statement * stmt) ...@@ -714,6 +715,7 @@ ECPGexecute(struct statement * stmt)
else else
{ {
strcpy(p, tobeinserted); strcpy(p, tobeinserted);
hostvarl = strlen(newcopy);
/* /*
* The strange thing in the second argument is the rest of the * 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,...) ...@@ -993,7 +995,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...)
* *
* Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * 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); PGconn *ECPG_internal_get_connection(char *name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment