From c65ea0e040f08b59407cd74f8f0f0dd190169d46 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 16 Jan 1998 23:21:07 +0000 Subject: 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. --- src/include/nodes/parsenodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/nodes') diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index c56363ddf0..02fa069df6 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.44 1998/01/15 19:00:11 momjian Exp $ + * $Id: parsenodes.h,v 1.45 1998/01/16 23:20:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -642,8 +642,8 @@ typedef struct TypeName char *name; /* name of the type */ bool timezone; /* timezone specified? */ bool setof; /* is a set? */ + int2 typmod; /* type modifier */ List *arrayBounds; /* array bounds */ - int typlen; /* length for char() and varchar() */ } TypeName; /* -- cgit v1.2.1