diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-23 14:13:56 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-23 14:13:56 +0100 |
commit | 26b3cc50816526ed58f8946a97797e55e5772862 (patch) | |
tree | 55c611010f7e97eac29aa3e9728f59a89a710281 | |
parent | b8221053ee727468d192ad87b1fbebbe6f1918a0 (diff) | |
download | bin-26b3cc50816526ed58f8946a97797e55e5772862.zip bin-26b3cc50816526ed58f8946a97797e55e5772862.tar.gz |
dia2pg: once again fix no_rename
-rwxr-xr-x | dia2pg.rb | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -190,9 +190,7 @@ class Attribute end # def real_name - if no_rename? - @name - elsif foreign? + if not no_rename? and 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" |