~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_rewrite.h

  • Committer: Monty Taylor
  • Date: 2010-11-24 19:33:25 UTC
  • mto: (1953.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1955.
  • Revision ID: mordred@inaugust.com-20101124193325-7rxjg5jwto3lfms9
protobuf requires pthread. It's just the way it is.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
   * @param[in] schema the schema the current session is in
60
60
   * @param[out] to_rewrite string representing the query to rewrite
61
61
   */
62
 
  virtual void rewrite(const std::string &schema, std::string &to_rewrite)= 0; 
 
62
  virtual void rewrite(const std::string &schema, Session::QueryString &to_rewrite)= 0; 
63
63
 
64
64
  static bool addPlugin(QueryRewriter *in_rewriter);
65
65
  static void removePlugin(QueryRewriter *in_rewriter);
70
70
   * TODO: does it make sense to have multiple rewriters?
71
71
   *
72
72
   * @param[in] schema the schema the current session is
73
 
   * @param[out] to_rewrite the query to rewrite
 
73
   * @param[out] to_rewrite string representing the query to rewrite
74
74
   */
75
 
  static void rewriteQuery(const std::string &schema, std::string &to_rewrite);
 
75
  static void rewriteQuery(const std::string &schema, Session::QueryString to_rewrite);
76
76
 
77
77
private:
78
78