mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Fix a bug about automatic client_encoding setting.
This commit is contained in:
		
							parent
							
								
									be347dcba6
								
							
						
					
					
						commit
						67d0cb2d77
					
				| @ -999,6 +999,7 @@ another_version_retry: | ||||
| 				if (res = CC_send_query(self, "set client_encoding to 'UTF8'", NULL, CLEAR_RESULT_ON_ABORT), res) | ||||
| 				{ | ||||
| 					self->client_encoding = strdup("UNICODE"); | ||||
| 					self->ccsc = pg_CS_code(self->client_encoding); | ||||
| 					QR_Destructor(res); | ||||
| 					 | ||||
| 				} | ||||
|  | ||||
| @ -401,6 +401,7 @@ CC_lookup_characterset(ConnectionClass *self) | ||||
| 			if (res) | ||||
| 			{ | ||||
| 				self->client_encoding = strdup(wenc); | ||||
| 				self->ccsc = pg_CS_code(self->client_encoding); | ||||
| 				QR_Destructor(res); | ||||
| 				free(encstr); | ||||
| 				return; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user