WL#1569: Prepared Statements: implement support of Query Cache

Affects: Server-5.1   —   Status: Complete

Make query cache available for queries running through prepared statement  
protocol. IMHO it will be needed more as the new protocol becomes popular.  
  
I think it will be enough to store bound data with query text and other 
parameters which already are stored in the query cache.  

Note added by Trudy Pelzer, 2006-08-06
At the Dev-MT Offsite meeting in Santa Cruz, Brian
and Monty made the following time estimate for this
task:
- prepared statements (WL#1569 and others); 4+ mths
* This is 4 tasks:
** WL#1569 "Prepared Statements: implement support of Query Cache"
** WL#? include all SQL
** WL#? update server for max ps statements
** WL#? make ps able to recreate itself if it doesn't exist
* Brian: Prepared statements aren't useful until this 4-part
task is complete.
* Current estimate: Update for qcache: 1 mth. Update client library 
to recreate ps if it goes missing: 1 week. Update server to know 
about max number of statements it remembers: 2 weeks. Include all 
sql: 2 months (this includes needed discussion but not the extra
time QA needs to adjust mysqltest for the new feature).

Note added by Trudy Pelzer, 2007-05-25
Kostja and Guilhem agree that sufficient work has been done
(fixing BUG#735 and BUG#26842) that this WL#1569 can be considered
complete. The other 3 tasks that Monty and Brian determined should
be done to make prepared statements fully useful will still be 
deferred; see WL#1803 for a complete list of work that still needs
to be done to make prepared statements full-featured.