Add lztext to TypeCategory so that lztext OP text cases will work
authorTom Lane
Sun, 27 Feb 2000 18:54:43 +0000 (18:54 +0000)
committerTom Lane
Sun, 27 Feb 2000 18:54:43 +0000 (18:54 +0000)
correctly (the lztext value will be promoted to text automatically).

src/backend/parser/parse_coerce.c

index 646f1a046b324a9cb74a2491cf6a0f414ce680d0..543971493742587342af425b4d4cda591447da28 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.32 2000/02/20 21:32:09 tgl Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.33 2000/02/27 18:54:43 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -300,10 +300,12 @@ TypeCategory(Oid inType)
        case (BPCHAROID):
        case (VARCHAROID):
        case (TEXTOID):
+       case (LZTEXTOID):
            result = STRING_TYPE;
            break;
 
        case (OIDOID):
+       case (REGPROCOID):
        case (INT2OID):
        case (INT4OID):
        case (INT8OID):