1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Add compatiblity information for bytea.

This commit is contained in:
Bruce Momjian
2000-03-20 04:02:47 +00:00
parent fe8098ed0c
commit 0e1f485f5f
4 changed files with 21 additions and 8 deletions

View File

@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.57 2000/02/26 23:03:12 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.58 2000/03/20 04:02:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -536,6 +536,7 @@ convert_to_scalar(Datum value, Oid typid,
}
case BPCHAROID:
case VARCHAROID:
case BYTEA:
case TEXTOID:
if (VARSIZE(DatumGetPointer(value)) > VARHDRSZ)
{
@ -595,7 +596,7 @@ convert_to_scalar(Datum value, Oid typid,
return true;
case TINTERVALOID:
{
TimeInterval interval = (TimeInterval) DatumGetPointer(value);
TimeInterval interval = (TimeInterval) DatumGetPointer(value);
if (interval->status != 0)
{