Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9a1ea6

Browse files
committed
Obviously noone has ever tested the doubling of availiable result ids
up toreaching the hard limit. After opening 16(=current REST_START value)results via pg_exec, the next pg_exec tries to find an empty slotforever :-( . In PgSetResultId file pgtclId.c in the for loop therehas to be done a break, if res_max ist reached. The piece of codeshould look like if (resid == connid->res_max) { resid = 0; break; /* the break as to be added */ }now everything works (double available results after reachingRES_START up to reaching RES_HARD_MAX)Gerhard Hintermayer
1 parent2816141 commitf9a1ea6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/interfaces/libpgtcl/pgtclId.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.35 2002/09/04 20:31:46 momjian Exp $
16+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.36 2002/09/23 01:43:23 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -343,7 +343,10 @@ PgSetResultId(Tcl_Interp *interp, char *connid_c, PGresult *res)
343343
for (resid=connid->res_last+1;resid!=connid->res_last;resid++)
344344
{
345345
if (resid==connid->res_max)
346+
{
346347
resid=0;
348+
break;
349+
}
347350
if (!connid->results[resid])
348351
{
349352
connid->res_last=resid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp