~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/generator/all_foreign_keys.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 12:51:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808125119-qcrkgv0frmxk03rn
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
      do {
50
50
        if (foreign_keys_iterator != table_message.fk_constraint_size())
51
51
        {
52
 
          const message::Table::ForeignKeyConstraint &fk_constraint(table_message.fk_constraint(foreign_keys_iterator++));
53
 
          return &fk_constraint;
 
52
          return &table_message.fk_constraint(foreign_keys_iterator++);
54
53
        }
55
54
 
56
55
      } while ((table_ptr= all_tables_generator) && table_setup());
71
70
      } while ((table_ptr= all_tables_generator) && table_setup());
72
71
    }
73
72
 
74
 
    ForeignKeyConstraintPair null_pair;
75
 
    return null_pair;
 
73
    return ForeignKeyConstraintPair();
76
74
  }
77
75
};
78
76