diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-12-15 16:29:28 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-12-15 16:29:28 +0100 |
commit | b2dd711d92ad53d15ab8973654f05e98e2213b61 (patch) | |
tree | d1756a2731ba64b62cf3112f2f2e1bcae57368bb /dia2pg.rb | |
parent | b633a610e6ede36b410a4892c32f7593c2148867 (diff) | |
download | bin-b2dd711d92ad53d15ab8973654f05e98e2213b61.zip bin-b2dd711d92ad53d15ab8973654f05e98e2213b61.tar.gz |
fix typos
Diffstat (limited to 'dia2pg.rb')
-rwxr-xr-x | dia2pg.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -217,7 +217,7 @@ class Attribute rl = RELATIONS.find { |r| r.tbl_to==@tbl and r.attr_to.name==@name } if rl.nil? $stderr << "MISSING RELATION FOR FOREIGN KEY #{@tbl.name} #{@name}\n" - raise Excpetion.new "MISSING RELATION FOR FOREIGN KEY #{@tbl.name} #{@name}\n" + raise Exception.new "MISSING RELATION FOR FOREIGN KEY #{@tbl.name} #{@name}\n" else r << "integer REFERENCES #{rl.tbl_from.name}(#{rl.attr_from.real_name})" r << " NOT NULL" if not @nullable @@ -270,7 +270,7 @@ doc.xpath('//dia:object[@type="Database - Table"]').each do |node| end # DATABASE REFERENCES doc.xpath('//dia:object[@type="Database - Reference"]').each do |node| - r = Relation.new options + r = Relation.new r.m_from = node.xpath('dia:attribute[@name="start_point_desc"]/dia:string').first.content[1..-2] r.m_to = node.xpath('dia:attribute[@name="end_point_desc"]/dia:string').first.content[1..-2] r.tbl_from = DATABASE[node.xpath('dia:connections/dia:connection[@handle="0"]/@to').to_s] |