From 2aa3cabf1b737e225178230882ee9aadfd817ce0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Mar 2013 16:04:48 +0200 Subject: Add changelog support for add/drop index/foreign key Also diagnose changes to primary keys and establish the 'alters' association. --- odb/semantics/relational/key.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/semantics/relational/key.cxx') 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 (i->column ().name ())); + column* c (s.lookup (i->column ().name ())); assert (c != 0); g.new_edge (*this, *c, i->options ()); } @@ -42,7 +42,7 @@ namespace semantics p.content (parser::empty); uname n (p.attribute ("name")); - column* c (s.find (n)); + column* c (s.lookup (n)); if (c == 0) throw parsing (p, "invalid column name in the 'name' attribute"); -- cgit v1.1