Files
woodpecker/store/datastore/sql/postgres/files
Niall Sheridan 4949047575 Don't return extra columns in result set
Since commit 360708e93d the feed-latest-build query has returned extra columns in the results, causing log messages like the following:

```
meddler.Targets: column [build_repo_id] not found in struct
meddler.Targets: column [build_id] not found in struct
meddler.WriteTargets: column [build_repo_id] not found in struct
meddler.WriteTargets: column [build_id] not found in struct
```

This is a result of the optimised Postgres query including the `build_repo_id` and `build_id` terms, where previously they were not inclued.
This PR rewrites the query slightly to produce the expected result set (i.e. without the `build_repo_id` and `build_id` columns). As a side-effect it also looks similar to the original query.

Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:22:28 +00:00
..
2017-05-05 20:05:42 +02:00
2017-08-02 16:04:00 -04:00
2017-07-15 12:51:02 -04:00
2017-05-19 17:54:13 +02:00
2017-04-06 21:51:01 +09:00
2017-07-15 12:51:02 -04:00
2017-04-14 13:32:36 +02:00