Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe - Mailing list pgsql-general

From David Wheeler
Subject Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe
Date
Msg-id B466C0B0-6B75-48EE-AD89-38DD72828E18@kineticode.com
Whole thread Raw
In response to Re: 'prepare' is not quite schema-safe  (Steve Atkins <steve@blighty.com>)
Responses Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe
List pgsql-general
On May 1, 2005, at 23:16 , Steve Atkins wrote:

> Isn't this behaving as documented? prepare_cached() is supposed to
> return the original statement handle when you pass it the same string
> a second time.

Yes.

> The docs for prepare_cached() are littered with "Don't do this unless
> you understand the implications" warnings, as well as some kludges to
> differentiate different cases.

Which is why Vlad should use prepare() instead of prepare_cached().

Regards,

David

pgsql-general by date:

Previous
From: David Wheeler
Date:
Subject: Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe
Next
From: David Wheeler
Date:
Subject: Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe