parameterized fetch - Mailing list pgsql-hackers

From Merlin Moncure
Subject parameterized fetch
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3417DD32B@Herge.rcsinc.local
Whole thread Raw
Responses Re: parameterized fetch
List pgsql-hackers
I've noticed that trying to parameterize a fetch statement via
ExecParams returns a syntax error:

fetch $1 from my_cursor;

This is not really a big deal, but maybe it should be documented which
statements can be parameterized and which can't (I take it that any
statement that can be prepared can be parameterized;

prepare test as fetch 1 from my_cursor;
also returns a syntax error;

Merlin



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug with cursor declaration in plpgsql? (Repost)
Next
From: Andreas Pflug
Date:
Subject: Re: 8.1 system info / admin functions