mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Switch to absolute latest pq driver (#12859)
This PR updates the lib/pq driver to the current master head to pick up the deadlock fix in lib/pq#993 Hopefully this will resolve our CI issues. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		
							
								
								
									
										8
									
								
								vendor/github.com/lib/pq/conn.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/lib/pq/conn.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1074,9 +1074,9 @@ func isDriverSetting(key string) bool { | ||||
| 		return true | ||||
| 	case "binary_parameters": | ||||
| 		return true | ||||
| 	case "service": | ||||
| 	case "krbsrvname": | ||||
| 		return true | ||||
| 	case "spn": | ||||
| 	case "krbspn": | ||||
| 		return true | ||||
| 	default: | ||||
| 		return false | ||||
| @@ -1168,13 +1168,13 @@ func (cn *conn) auth(r *readBuf, o values) { | ||||
|  | ||||
| 		var token []byte | ||||
|  | ||||
| 		if spn, ok := o["spn"]; ok { | ||||
| 		if spn, ok := o["krbspn"]; ok { | ||||
| 			// Use the supplied SPN if provided.. | ||||
| 			token, err = cli.GetInitTokenFromSpn(spn) | ||||
| 		} else { | ||||
| 			// Allow the kerberos service name to be overridden | ||||
| 			service := "postgres" | ||||
| 			if val, ok := o["service"]; ok { | ||||
| 			if val, ok := o["krbsrvname"]; ok { | ||||
| 				service = val | ||||
| 			} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zeripath
					zeripath