浏览代码

Use select method as query is deprecated

master
Adrian Short 9 年前
父节点
当前提交
0b3f7dabd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb 查看文件

@@ -100,7 +100,7 @@ get '/services/:slug' do
@d_start = @service.payments.min(:d)
@d_end = @service.payments.max(:d)
@results = repository(:default).adapter.query("
@results = repository(:default).adapter.select("
SELECT s.name AS supplier_name, s.slug AS supplier_slug, SUM(p.amount) AS total
FROM payments p, suppliers s
WHERE p.supplier_id = s.id


正在加载...
取消
保存