summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-03-03 10:21:25 +0000
committerLibravatar GitHub <noreply@github.com>2024-03-03 11:21:25 +0100
commitea0efb809475bc84f24ad4959d86259222d2ace2 (patch)
tree3883e4a6c1859d8db1e871ab1d25de08119d4c81
parent[docs] Use human sizes for size limitations (#2706) (diff)
downloadgotosocial-ea0efb809475bc84f24ad4959d86259222d2ace2.tar.xz
[bugfix] update postgresqlstmt to correctly use postgres err hook (#2711)
-rw-r--r--internal/db/bundb/drivers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/drivers.go b/internal/db/bundb/drivers.go
index 3050a13a0..1811ad533 100644
--- a/internal/db/bundb/drivers.go
+++ b/internal/db/bundb/drivers.go
@@ -136,7 +136,7 @@ func (stmt *PostgreSQLStmt) Exec(args []driver.Value) (driver.Result, error) {
func (stmt *PostgreSQLStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) {
res, err := stmt.stmt.ExecContext(ctx, args)
- err = processSQLiteError(err)
+ err = processPostgresError(err)
return res, err
}
@@ -146,7 +146,7 @@ func (stmt *PostgreSQLStmt) Query(args []driver.Value) (driver.Rows, error) {
func (stmt *PostgreSQLStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) {
rows, err := stmt.stmt.QueryContext(ctx, args)
- err = processSQLiteError(err)
+ err = processPostgresError(err)
return rows, err
}