mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 19:52:24 -05:00 
			
		
		
		
	bump modernc.org/sqlite v1.29.8 -> v1.29.9 (concurrency workaround) (#2906)
This commit is contained in:
		
					parent
					
						
							
								f456bd3401
							
						
					
				
			
			
				commit
				
					
						f24ce34c3a
					
				
			
		
					 6 changed files with 8 additions and 12 deletions
				
			
		
							
								
								
									
										6
									
								
								vendor/modernc.org/sqlite/sqlite.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/modernc.org/sqlite/sqlite.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -701,7 +701,7 @@ type tx struct { | |||
| 	c *conn | ||||
| } | ||||
| 
 | ||||
| func newTx(c *conn, opts driver.TxOptions) (*tx, error) { | ||||
| func newTx(ctx context.Context, c *conn, opts driver.TxOptions) (*tx, error) { | ||||
| 	r := &tx{c: c} | ||||
| 
 | ||||
| 	sql := "begin" | ||||
|  | @ -709,7 +709,7 @@ func newTx(c *conn, opts driver.TxOptions) (*tx, error) { | |||
| 		sql = "begin " + c.beginMode | ||||
| 	} | ||||
| 
 | ||||
| 	if err := r.exec(context.Background(), sql); err != nil { | ||||
| 	if err := r.exec(ctx, sql); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
|  | @ -1348,7 +1348,7 @@ func (c *conn) Begin() (dt driver.Tx, err error) { | |||
| } | ||||
| 
 | ||||
| func (c *conn) begin(ctx context.Context, opts driver.TxOptions) (t driver.Tx, err error) { | ||||
| 	return newTx(c, opts) | ||||
| 	return newTx(ctx, c, opts) | ||||
| } | ||||
| 
 | ||||
| // Close invalidates and potentially stops any current prepared statements and | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue