Skip site navigation (1) Skip section navigation (2)

pg_exec not returning after 16 calls/ libpgtcl

From: g(dot)hintermayer(at)inode(dot)at (Gerhard Hintermayer)
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pg_exec not returning after 16 calls/ libpgtcl
Date: 2002-09-19 10:27:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Sorry if posted twice, got not confirmation about posting from google.

Obviously noone has ever tested the doubling of availiable result ids
up to
reaching the hard limit. After opening 16(=current REST_START value)
results via pg_exec, the next pg_exec tries to find an empty slot
forever :-( . In PgSetResultId file pgtclId.c in the for loop there
has to be done a break, if res_max ist reached. The piece of code
should look like
        if (resid == connid->res_max)
            resid = 0;
            break;   /* the break as to be added */

now everything works (double available results after reaching
RES_START up to reaching RES_HARD_MAX)

PS: sorry, posting via Google, so no attached diff available


Gerhard Hintermayer


pgsql-interfaces by date

Next:From: Joerg SommerDate: 2002-09-19 15:59:11
Subject: PG classes for C++
Previous:From: Bruce MomjianDate: 2002-09-18 05:18:07
Subject: Re: 7.3 gotchas for applications and client libraries

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group