summaryrefslogtreecommitdiff
path: root/testrig/processor.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2022-04-28 00:43:41 -0700
committerLibravatar GitHub <noreply@github.com>2022-04-28 08:43:41 +0100
commit8e80f983b354f90a4a8b701383ce682c9163b59b (patch)
treed0b083ebc0ad34c5363efa9c33a3da3e7f8f409d /testrig/processor.go
parent[chore] Return more useful errors from auth failure (#494) (diff)
downloadgotosocial-8e80f983b354f90a4a8b701383ce682c9163b59b.tar.xz
[bugfix] use Exec to rename media_attachments (#498)
The `database/sql` package in the Go stdlib has two methods that can run queries against the database driver: `Query` and `Exec`. When the query returns rows, such as "SELECT", the package expects the use of `Query`, and returns `*sql.Rows`. When the query does not return rows, the package expects the use of `Exec`, which returns `sql.Result`. This changeset corrects the "media_attachments" migration to using `ExecContext`, as "ALTER TABLE" does not return rows. Signed-off-by: Terin Stock <terinjokes@gmail.com>
Diffstat (limited to 'testrig/processor.go')
0 files changed, 0 insertions, 0 deletions