~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

  • Committer: Brian Aker
  • Date: 2011-04-03 06:02:00 UTC
  • mto: (2263.2.2 drizzle-ga)
  • mto: This revision was merged to the branch mainline in revision 2268.
  • Revision ID: brian@tangent.org-20110403060200-g8v2x1k33rrpx1an
This adds the concept of a definer to a table definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <drizzled/message.h>
40
40
#include <drizzled/message/statement_transform.h>
41
41
#include <drizzled/message/transaction.pb.h>
 
42
#include <drizzled/message/access.h>
42
43
 
43
44
#include <string>
44
45
#include <vector>
900
901
    destination.append(" REPLICATE = FALSE");
901
902
  }
902
903
 
 
904
  if (message::has_definer(schema))
 
905
  {
 
906
    destination.append(" DEFINER ");
 
907
    destination.append(message::definer(schema));
 
908
  }
 
909
 
903
910
  return NONE;
904
911
}
905
912
 
1098
1105
    destination.append(" REPLICATE = FALSE");
1099
1106
  }
1100
1107
 
 
1108
  if (message::has_definer(table))
 
1109
  {
 
1110
    destination.append(" DEFINER ");
 
1111
    destination.append(message::definer(table));
 
1112
  }
 
1113
 
1101
1114
  return NONE;
1102
1115
}
1103
1116