Hi,
I tried to write a simple plugin that would use the
logging_pre_do(Session *session) hook to add the option of rewriting a
query.
Everything was going well until I tried to access
session->getQueryString(), it was always NULL. Looking at
sql_parse.cc:192 I see that at the time we have
logging_pre_do(session);
session->query is still null, it only gets the text of the query at
line 211 by calling:
if (! session->readAndStoreQuery(packet, packet_length))
My question:
1) Do I half duplicate the function session->readAndStoreQuery() in my plugin ?
2) Do I move session->readAndStoreQuery before logging_pre_do(session); ?
3) Fill in your own :)
Thanks
-Diego
--
Diego Medina
Web Developer
http://www.fmpwizard.com
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp