~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_rewrite.h

  • Committer: Padraig O'Sullivan
  • Date: 2010-12-03 19:16:09 UTC
  • mto: (1975.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: osullivan.padraig@gmail.com-20101203191609-7s81iwt33vrgmz9v
Some re-factoring based on feedback from Monty on IRC.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
   *
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
 
   * @return true if successful, false otherwise
62
61
   */
63
 
  virtual bool rewrite(const std::string &schema, std::string &to_rewrite)= 0; 
 
62
  virtual void rewrite(const std::string &schema, std::string &to_rewrite)= 0; 
64
63
 
65
64
  static bool addPlugin(QueryRewriter *in_rewriter);
66
65
  static void removePlugin(QueryRewriter *in_rewriter);
71
70
   * TODO: does it make sense to have multiple rewriters?
72
71
   *
73
72
   * @param[in] schema the schema the current session is
74
 
   * @param[in] session current session
 
73
   * @param[out] to_rewrite the query to rewrite
75
74
   */
76
 
  static void rewriteQuery(const std::string &schema, Session *session);
 
75
  static void rewriteQuery(const std::string &schema, std::string &to_rewrite);
77
76
 
78
77
private:
79
78