Commit 245a0ac4 authored by Maxim Ivanov's avatar Maxim Ivanov
Browse files

Fix SQL param binding

parent ff3ca169
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ func StorageListObjectsUser(ctx context.Context, logger *zap.Logger, db *sql.DB,
	params := []interface{}{collection, userID, limit + 1}
	if storageCursor != nil {
		// User ID is always a known user based on the type of the listing operation.
		cursorQuery = ` AND key > $5 `
		cursorQuery = ` AND key > $4 `
		params = append(params, storageCursor.Key)
	}