1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

1) Decrease the size of needlessly large buffers. For example, it

resolved the stack over flow errors reported by Johann Zuschlag.
2) Support {oj syntax for 71. servers.
This commit is contained in:
Hiroshi Inoue
2001-04-23 01:41:06 +00:00
parent cc6bdb3e48
commit e355992ff9
5 changed files with 41 additions and 16 deletions

View File

@ -300,6 +300,11 @@ SQLExecute(
stmt->data_at_exec = -1;
for (i = 0; i < stmt->parameters_allocated; i++)
{
Int4 *pcVal = stmt->parameters[i].used;
if (pcVal && (*pcVal == SQL_DATA_AT_EXEC || *pcVal <= SQL_LEN_DATA_AT_EXEC_OFFSET))
stmt->parameters[i].data_at_exec = TRUE;
else
stmt->parameters[i].data_at_exec = FALSE;
/* Check for data at execution parameters */
if (stmt->parameters[i].data_at_exec == TRUE)
{