lib/lhm/table.rb in lhm-1.0.3 vs lib/lhm/table.rb in lhm-1.1.0
- old
+ new
@@ -36,10 +36,12 @@
@connection = connection
end
def ddl
sql = "show create table `#{ @table_name }`"
- @connection.execute(sql).fetch_row.last
+ specification = nil
+ @connection.execute(sql).each { |row| specification = row.last }
+ specification
end
def parse
schema = read_information_schema