MySQL Forums
Forum List  »  Router & Proxy

Execute a query and read the response immediately
Posted by: Peter Romianowski
Date: May 06, 2008 05:33PM

Hi,

I need to perform a query whenever the proxy starts or at least when a connection is being established and I need the result BEFORE any other query is issued. AFAIK you can inject queries only within read_query. In my scenario I need to first do a SELECT, read its result and THEN I am able to handle all other statements since I need the information from that initial SELECT to decide how to rewrite the following queries.

Would it be possible to enable sending queries within connect_server or (even better) have something like local result = execute_query("SELECT ...") which blocks and returns the result. (Though I guess the latter one is outside the scope of the proxy).

Cheers,

Peter

Options: ReplyQuote


Subject
Views
Written By
Posted
Execute a query and read the response immediately
3359
May 06, 2008 05:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.