mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	New pg_attribute.atttypmod for type-specific information like
varchar length. Cleans up code so attlen is always length. Removed varchar() hack added earlier. Will fix bug in selecting varchar() fields, and varchar() can be variable length.
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.21 1998/01/15 18:59:26 momjian Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.22 1998/01/16 23:19:59 momjian Exp $ | ||||
|  * | ||||
|  * NOTES | ||||
|  *	  Every (plan) node in POSTGRES has an associated "out" routine which | ||||
| @@ -137,11 +137,11 @@ _outTypeName(StringInfo str, TypeName *node) | ||||
| 	appendStringInfo(str, (node->timezone ? "true" : "false")); | ||||
| 	appendStringInfo(str, " :setof "); | ||||
| 	appendStringInfo(str, (node->setof ? "true" : "false")); | ||||
| 	appendStringInfo(str, " :typmod "); | ||||
| 	sprintf(buf," %d ", node->typmod); | ||||
| 	appendStringInfo(str, buf); | ||||
| 	appendStringInfo(str, " :arrayBounds "); | ||||
| 	_outNode(str, node->arrayBounds); | ||||
| 	appendStringInfo(str, " :typlen "); | ||||
| 	sprintf(buf," %d ", node->typlen); | ||||
| 	appendStringInfo(str, buf); | ||||
| } | ||||
|  | ||||
| static void | ||||
|   | ||||
		Reference in New Issue
	
	Block a user