~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/named_savepoint.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 12:15:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705121512-7c7iy6vf94gr61pk
UseĀ operator=

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
  void setResourceContexts(TransactionContext::ResourceContexts &new_contexts)
52
52
  {
53
 
    resource_contexts.assign(new_contexts.begin(), new_contexts.end());
 
53
    resource_contexts= new_contexts;
54
54
  }
55
55
  const TransactionContext::ResourceContexts &getResourceContexts() const
56
56
  {
81
81
    if (this == &other)
82
82
      return *this;
83
83
 
84
 
    name.assign(other.getName());
85
 
    const TransactionContext::ResourceContexts &other_resource_contexts= other.getResourceContexts();
86
 
    resource_contexts.assign(other_resource_contexts.begin(),
87
 
                             other_resource_contexts.end());
 
84
    name= other.getName();
 
85
    resource_contexts= other.getResourceContexts();
88
86
    return *this;
89
87
  }
90
88
private: