mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +03:00 
			
		
		
		
	Fix compiler warning.
Some buildfarm members complained about an always-true test in the SOFT_ERROR_OCCURRED macro. Fix by reading the field directly rather than using the macro. Reported-by: Tom Lane Discussion: https://postgr.es/m/2144895.1729653514@sss.pgh.pa.us
This commit is contained in:
		| @@ -633,7 +633,7 @@ text_to_stavalues(const char *staname, FmgrInfo *array_in, Datum d, Oid typid, | ||||
|  | ||||
| 	pfree(s); | ||||
|  | ||||
| 	if (SOFT_ERROR_OCCURRED(&escontext)) | ||||
| 	if (escontext.error_occurred) | ||||
| 	{ | ||||
| 		if (elevel != ERROR) | ||||
| 			escontext.error_data->elevel = elevel; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user