On Friday 27 February 2004 20:54, Michael Meskes wrote: > On Fri, Feb 27, 2004 at 04:22:33PM +0530, Shridhar Daithankar wrote: > > How about, allowing 'connection *'? If somebody puts a 'connection *' > > there it is used. If it is a string a name search is performed. Best of > > both worlds. > > How shall anyone put a pointer to a connection struct inside the SQL > statement? > > It would help me a lot if you'd be able to give some examples.
EXEC SQL BEGIN DECLARE SECTION; connect *connectionPtr; EXEC SQL END DECLARE SECTION; EXEC SQL CONNECT TO db AS connectionPtr; EXEC SQL AT connectionPtr SELECT 1; After all, it is matter of parsing some code and emitting equivalent C code, isn't it? Shridhar ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly