diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-28 16:04:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:44 +0200 |
commit | 2aa3cabf1b737e225178230882ee9aadfd817ce0 (patch) | |
tree | 85a6c7a90f8483ca11a4bc825cd2ef22114c3d97 /odb/semantics/relational/key.cxx | |
parent | e999b1e7295acd8cdb646c2db7db1f5059f10c7d (diff) |
Add changelog support for add/drop index/foreign key
Also diagnose changes to primary keys and establish the 'alters'
association.
Diffstat (limited to 'odb/semantics/relational/key.cxx')
-rw-r--r-- | odb/semantics/relational/key.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/semantics/relational/key.cxx b/odb/semantics/relational/key.cxx index e27253c..dc0fbe0 100644 --- a/odb/semantics/relational/key.cxx +++ b/odb/semantics/relational/key.cxx @@ -18,7 +18,7 @@ namespace semantics for (contains_iterator i (k.contains_begin ()); i != k.contains_end (); ++i) { - column* c (s.find<column> (i->column ().name ())); + column* c (s.lookup<column, drop_column> (i->column ().name ())); assert (c != 0); g.new_edge<contains> (*this, *c, i->options ()); } @@ -42,7 +42,7 @@ namespace semantics p.content (parser::empty); uname n (p.attribute<uname> ("name")); - column* c (s.find<column> (n)); + column* c (s.lookup<column, drop_column> (n)); if (c == 0) throw parsing (p, "invalid column name in the 'name' attribute"); |