~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_rewrite.h

MErge Session fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "drizzled/atomics.h"
28
28
#include "drizzled/plugin/plugin.h"
 
29
#include "drizzled/session.h"
29
30
 
30
31
/**
31
32
 * @file Defines the API for a QueryRewriter.  
58
59
   * @param[in] schema the schema the current session is in
59
60
   * @param[out] to_rewrite string representing the query to rewrite
60
61
   */
61
 
  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; 
62
63
 
63
64
  static bool addPlugin(QueryRewriter *in_rewriter);
64
65
  static void removePlugin(QueryRewriter *in_rewriter);
71
72
   * @param[in] schema the schema the current session is
72
73
   * @param[out] to_rewrite string representing the query to rewrite
73
74
   */
74
 
  static void rewriteQuery(const std::string &schema, std::string &to_rewrite);
 
75
  static void rewriteQuery(const std::string &schema, Session::QueryString to_rewrite);
75
76
 
76
77
private:
77
78