mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Cleanup for array fix patch.
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.24 1997/09/10 23:30:45 momjian Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.25 1997/09/10 23:57:49 momjian Exp $ | ||||
|  * | ||||
|  * NOTES | ||||
|  *	  some of the executor utility code such as "ExecTypeFromTL" should be | ||||
| @@ -481,7 +481,6 @@ BuildDescForRelation(List *schema, char *relname) | ||||
| 		arry = entry->typename->arrayBounds; | ||||
| 		attisset = entry->typename->setof; | ||||
|  | ||||
| 		strNcpy(typename, entry->typename->name, NAMEDATALEN - 1); | ||||
| 		if (arry != NIL) | ||||
| 		{ | ||||
| 			/* array of XXX is _XXX */ | ||||
| @@ -489,7 +488,10 @@ BuildDescForRelation(List *schema, char *relname) | ||||
| 			attdim = length(arry); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			strNcpy(typename, entry->typename->name, NAMEDATALEN - 1); | ||||
| 			attdim = 0; | ||||
| 		} | ||||
|  | ||||
| 		if (!TupleDescInitEntry(desc, attnum, attname, | ||||
| 								typename, attdim, attisset)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user