mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:42:24 -05:00 
			
		
		
		
	[chore] update dependencies (#4422)
- github.com/jackc/pgx/v5 v5.7.5 -> v5.7.6 - github.com/ncruces/go-sqlite3 v0.28.0 -> v0.29.0 - github.com/tdewolff/minify/v2 v2.24.2 -> v2.24.3 - golang.org/x/oauth2 v0.30.0 -> v0.31.0 - golang.org/x/sys v0.35.0 -> v0.36.0 - golang.org/x/text v0.28.0 -> v0.29.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4422 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								9b7db51436
							
						
					
				
			
			
				commit
				
					
						a6429b5410
					
				
			
		
					 78 changed files with 1439 additions and 1189 deletions
				
			
		
							
								
								
									
										26
									
								
								vendor/github.com/jackc/pgx/v5/pgconn/pgconn.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								vendor/github.com/jackc/pgx/v5/pgconn/pgconn.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -135,7 +135,7 @@ func ConnectWithOptions(ctx context.Context, connString string, parseConfigOptio | |||
| // | ||||
| // If config.Fallbacks are present they will sequentially be tried in case of error establishing network connection. An | ||||
| // authentication error will terminate the chain of attempts (like libpq: | ||||
| // https://www.postgresql.org/docs/11/libpq-connect.html#LIBPQ-MULTIPLE-HOSTS) and be returned as the error. | ||||
| // https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-MULTIPLE-HOSTS) and be returned as the error. | ||||
| func ConnectConfig(ctx context.Context, config *Config) (*PgConn, error) { | ||||
| 	// Default values are set in ParseConfig. Enforce initial creation by ParseConfig rather than setting defaults from | ||||
| 	// zero values. | ||||
|  | @ -991,7 +991,8 @@ func noticeResponseToNotice(msg *pgproto3.NoticeResponse) *Notice { | |||
| 
 | ||||
| // CancelRequest sends a cancel request to the PostgreSQL server. It returns an error if unable to deliver the cancel | ||||
| // request, but lack of an error does not ensure that the query was canceled. As specified in the documentation, there | ||||
| // is no way to be sure a query was canceled. See https://www.postgresql.org/docs/11/protocol-flow.html#id-1.10.5.7.9 | ||||
| // is no way to be sure a query was canceled. | ||||
| // See https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-CANCELING-REQUESTS | ||||
| func (pgConn *PgConn) CancelRequest(ctx context.Context) error { | ||||
| 	// Open a cancellation request to the same server. The address is taken from the net.Conn directly instead of reusing | ||||
| 	// the connection config. This is important in high availability configurations where fallback connections may be | ||||
|  | @ -1140,7 +1141,7 @@ func (pgConn *PgConn) Exec(ctx context.Context, sql string) *MultiResultReader { | |||
| // binary format. If resultFormats is nil all results will be in text format. | ||||
| // | ||||
| // ResultReader must be closed before PgConn can be used again. | ||||
| func (pgConn *PgConn) ExecParams(ctx context.Context, sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats []int16, resultFormats []int16) *ResultReader { | ||||
| func (pgConn *PgConn) ExecParams(ctx context.Context, sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats, resultFormats []int16) *ResultReader { | ||||
| 	result := pgConn.execExtendedPrefix(ctx, paramValues) | ||||
| 	if result.closed { | ||||
| 		return result | ||||
|  | @ -1166,7 +1167,7 @@ func (pgConn *PgConn) ExecParams(ctx context.Context, sql string, paramValues [] | |||
| // binary format. If resultFormats is nil all results will be in text format. | ||||
| // | ||||
| // ResultReader must be closed before PgConn can be used again. | ||||
| func (pgConn *PgConn) ExecPrepared(ctx context.Context, stmtName string, paramValues [][]byte, paramFormats []int16, resultFormats []int16) *ResultReader { | ||||
| func (pgConn *PgConn) ExecPrepared(ctx context.Context, stmtName string, paramValues [][]byte, paramFormats, resultFormats []int16) *ResultReader { | ||||
| 	result := pgConn.execExtendedPrefix(ctx, paramValues) | ||||
| 	if result.closed { | ||||
| 		return result | ||||
|  | @ -1373,7 +1374,14 @@ func (pgConn *PgConn) CopyFrom(ctx context.Context, r io.Reader, sql string) (Co | |||
| 				close(pgConn.cleanupDone) | ||||
| 				return CommandTag{}, normalizeTimeoutError(ctx, err) | ||||
| 			} | ||||
| 			msg, _ := pgConn.receiveMessage() | ||||
| 			// peekMessage never returns err in the bufferingReceive mode - it only forwards the bufferingReceive variables. | ||||
| 			// Therefore, the only case for receiveMessage to return err is during handling of the ErrorResponse message type | ||||
| 			// and using pgOnError handler to determine the connection is no longer valid (and thus closing the conn). | ||||
| 			msg, serverError := pgConn.receiveMessage() | ||||
| 			if serverError != nil { | ||||
| 				close(abortCopyChan) | ||||
| 				return CommandTag{}, serverError | ||||
| 			} | ||||
| 
 | ||||
| 			switch msg := msg.(type) { | ||||
| 			case *pgproto3.ErrorResponse: | ||||
|  | @ -1712,7 +1720,7 @@ type Batch struct { | |||
| } | ||||
| 
 | ||||
| // ExecParams appends an ExecParams command to the batch. See PgConn.ExecParams for parameter descriptions. | ||||
| func (batch *Batch) ExecParams(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats []int16, resultFormats []int16) { | ||||
| func (batch *Batch) ExecParams(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats, resultFormats []int16) { | ||||
| 	if batch.err != nil { | ||||
| 		return | ||||
| 	} | ||||
|  | @ -1725,7 +1733,7 @@ func (batch *Batch) ExecParams(sql string, paramValues [][]byte, paramOIDs []uin | |||
| } | ||||
| 
 | ||||
| // ExecPrepared appends an ExecPrepared e command to the batch. See PgConn.ExecPrepared for parameter descriptions. | ||||
| func (batch *Batch) ExecPrepared(stmtName string, paramValues [][]byte, paramFormats []int16, resultFormats []int16) { | ||||
| func (batch *Batch) ExecPrepared(stmtName string, paramValues [][]byte, paramFormats, resultFormats []int16) { | ||||
| 	if batch.err != nil { | ||||
| 		return | ||||
| 	} | ||||
|  | @ -2201,7 +2209,7 @@ func (p *Pipeline) SendDeallocate(name string) { | |||
| } | ||||
| 
 | ||||
| // SendQueryParams is the pipeline version of *PgConn.QueryParams. | ||||
| func (p *Pipeline) SendQueryParams(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats []int16, resultFormats []int16) { | ||||
| func (p *Pipeline) SendQueryParams(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats, resultFormats []int16) { | ||||
| 	if p.closed { | ||||
| 		return | ||||
| 	} | ||||
|  | @ -2214,7 +2222,7 @@ func (p *Pipeline) SendQueryParams(sql string, paramValues [][]byte, paramOIDs [ | |||
| } | ||||
| 
 | ||||
| // SendQueryPrepared is the pipeline version of *PgConn.QueryPrepared. | ||||
| func (p *Pipeline) SendQueryPrepared(stmtName string, paramValues [][]byte, paramFormats []int16, resultFormats []int16) { | ||||
| func (p *Pipeline) SendQueryPrepared(stmtName string, paramValues [][]byte, paramFormats, resultFormats []int16) { | ||||
| 	if p.closed { | ||||
| 		return | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue