Permalink
Browse files

Applying fix for Sequel 2.9.0

  • Loading branch information...
1 parent 184c4d2 commit 1d34ee65b95550f0b22ffb9acd8103e3e46b18e1 @wishdev wishdev committed Jan 23, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/sequel_core/adapters/firebird.rb
@@ -65,9 +65,9 @@ def create_sequence_sql(name, opts={})
# See Schema::Generator.
# Firebird gets an override because of the mess of creating a
# generator for auto-incrementing primary keys.
- def create_table(name, generator=nil, &block)
- generator ||= Schema::Generator.new(self, &block)
- statements = create_table_sql_list(name, *generator.create_info)
+ def create_table(name, options={}, &block)
+ options = {:generator=>options} if options.is_a?(Schema::Generator)
+ statements = create_table_sql_list(name, *((options[:generator] ||= Schema::Generator.new(self, &block)).create_info << options))
begin
execute_ddl(statements[1])
rescue
@@ -76,7 +76,7 @@ def create_table(name, generator=nil, &block)
statements[0].flatten.each {|sql| execute_ddl(sql)}
end
- def create_table_sql_list(name, columns, indexes = nil)
+ def create_table_sql_list(name, columns, indexes = nil, options={})
statements = super
drop_seq_statement = nil
columns.each do |c|

0 comments on commit 1d34ee6

Please sign in to comment.