From b8221053ee727468d192ad87b1fbebbe6f1918a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 17 Jan 2013 13:51:33 +0100 Subject: dia2pg.rb: fix no_rename --- dia2pg.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dia2pg.rb b/dia2pg.rb index cbb8a31..854d65c 100755 --- a/dia2pg.rb +++ b/dia2pg.rb @@ -190,7 +190,9 @@ class Attribute end # def real_name - if foreign? and not no_rename? + if no_rename? + @name + elsif foreign? rl = RELATIONS.find { |r| r.tbl_to==@tbl and r.attr_to.name==@name } if rl.nil? $stderr << "MISSING RELATION FOR FOREIGN KEY table:#{@tbl.name} attribute:#{@name}\n" -- cgit v1.1-2-g2b99