提交 4cd89102 编写于 作者: J Jeremy Kemper

r3118@asus: jeremy | 2005-11-16 00:32:48 -0800

 correct prefetch_primary_key? table_name param


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 9cb02c53
......@@ -49,7 +49,7 @@ def supports_migrations?
# sequence before the insert statement? If true, next_sequence_value
# is called before each insert to set the record's primary key.
# This is false for all adapters but Firebird.
def prefetch_primary_key?
def prefetch_primary_key?(table_name = nil)
false
end
......
......@@ -258,7 +258,7 @@ def adapter_name # :nodoc:
# Returns true for Firebird adapter (since Firebird requires primary key
# values to be pre-fetched before insert). See also #next_sequence_value.
def prefetch_primary_key?
def prefetch_primary_key?(table_name = nil)
true
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册