提交 12f5158f 编写于 作者: A Aaron Patterson

remove unused string substitution

上级 3b677aa0
......@@ -314,12 +314,7 @@ def empty_insert_statement_value
protected
def select(sql, name = nil, binds = []) #:nodoc:
result = exec_query(sql, name, binds)
columns = result.columns.map { |column|
column.sub(/^"?\w+"?\./, '')
}
result.rows.map { |row| Hash[columns.zip(row)] }
exec_query(sql, name, binds).to_a
end
def table_structure(table_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册