提交 15c07749 编写于 作者: J Jeremy Kemper

undef abstract methods instead of raising NotImplementedError. Still need the...

undef abstract methods instead of raising NotImplementedError. Still need the definitions for rdoc though.
上级 4af46c4b
......@@ -31,13 +31,13 @@ def select_values(sql, name = nil)
# Returns an array of arrays containing the field values.
# Order is the same as that returned by +columns+.
def select_rows(sql, name = nil)
raise NotImplementedError, "select_rows is an abstract method"
end
undef_method :select_rows
# Executes the SQL statement in the context of this connection.
def execute(sql, name = nil)
raise NotImplementedError, "execute is an abstract method"
def execute(sql, name = nil, skip_logging = false)
end
undef_method :execute
# Returns the last auto-generated ID from the affected table.
def insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
......@@ -163,8 +163,8 @@ def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
# Returns an array of record hashes with the column names as keys and
# column values as values.
def select(sql, name = nil)
raise NotImplementedError, "select is an abstract method"
end
undef_method :select
# Returns the last auto-generated ID from the affected table.
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册