Bug #36077 Special comments for the mysqlproxy
Submitted: 15 Apr 2008 6:48 Modified: 15 Dec 2014 20:32
Reporter: Diego Medina Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Proxy: Core Severity:S4 (Feature request)
Version:0.7.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: mysqlproxy

[15 Apr 2008 6:48] Diego Medina
Description:
I have seen some people rewriting their queries to give the proxy some "hints" of what to do using comments ( /* use database x */) kind of example.

And I was thinking that the same way that in MySQL we have the spacial comments like:

/*!50021  some options here*/

Maybe we could have 
/*[[proxy specific commands]]*/

How to repeat:

The reason for the brackets as the "spacial" character was based on how Lua comments are

--[[
some comments here
--]]

Suggested fix:
Maybe the tokenizer could be extended to also find these "proxy_comments"

The idea is to have the same "hints" system across all/most users

And finally, what do you think the changes are that if I figure how to do this and submit a patch, that the patch could be accepted?

Thanks!

Diego Medina
[15 Dec 2014 20:32] Sveta Smirnova
Thank you for the reasonable feature request.