Hi Everyone,

>>
>> Grab the query in the post interface.
>
> But then what would be the point of a pre- interface?

I looked at it again and I realized I didn't need the whole
session->readAndStoreQuery() to get the query text, what seems to do
the job and change as little code as possible is to add in
sql_parse.cc:190:


  LEX_STRING tmp;
  tmp.str= packet;
  session->query= tmp.str;
  logging_pre_do(session);

...
and remove the declaration of tmp from inside the  case COM_INIT_DB:


because for my purpose, I just need the query text.

./dtr will tell me if I broke anything doing this ;)


Thanks

  -Diego





>
> -jay
>



-- 
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

Reply via email to