Re: [PATCHES] Thread-safe PREPARE in ecpg

2007-09-26 Thread Michael Meskes
On Wed, Sep 26, 2007 at 01:43:34PM +0900, ITAGAKI Takahiro wrote: > Here is a revised patch against CVS HEAD. > I fixed a bug in ECPGdeallocate_all(). Applied to CVS HEAD. I also added your example to the regression tests. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at

Re: [PATCHES] Thread-safe PREPARE in ecpg

2007-09-25 Thread ITAGAKI Takahiro
Here is a revised patch against CVS HEAD. I fixed a bug in ECPGdeallocate_all(). Michael Meskes <[EMAIL PROTECTED]> wrote: > Could you please create a small example that we could add to the > regression suite? The attached prep.pgc is an example for this fix, that repeats EXEC SQL PREPARE and EX

Re: [PATCHES] Thread-safe PREPARE in ecpg

2007-09-25 Thread Michael Meskes
On Tue, Sep 25, 2007 at 03:22:13PM +0900, ITAGAKI Takahiro wrote: > Here is a WIP patch to make prepared statements thread-safe in ecpg. > The variable prep_stmts was global but not protected by any locks. > I divided it into per-connection field so that we can access prepared > statements separate

[PATCHES] Thread-safe PREPARE in ecpg

2007-09-24 Thread ITAGAKI Takahiro
Here is a WIP patch to make prepared statements thread-safe in ecpg. The variable prep_stmts was global but not protected by any locks. I divided it into per-connection field so that we can access prepared statements separately in each thread. I needed to change the following exported functions, b