mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers
or array variables.
This commit is contained in:
		@@ -352,7 +352,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur)
 | 
				
			|||||||
				else
 | 
									else
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					newvar = new_variable(cat_str(4, mm_strdup("("),
 | 
										newvar = new_variable(cat_str(4, mm_strdup("("),
 | 
				
			||||||
												  mm_strdup(ecpg_type_name(ptr->variable->type->type)),
 | 
																	  mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
 | 
				
			||||||
												  mm_strdup(" *)(ECPGget_var("),
 | 
																	  mm_strdup(" *)(ECPGget_var("),
 | 
				
			||||||
												  mm_strdup(var_text)),
 | 
																	  mm_strdup(var_text)),
 | 
				
			||||||
										  ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
 | 
															  ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user