Change phrasing of input error message.

Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
This commit is contained in:
Thomas G. Lockhart 1997-11-07 06:30:20 +00:00
parent 7e1a8a90f8
commit c934ee7859
1 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.10 1997/10/30 16:45:12 thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.11 1997/11/07 06:30:20 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@ -72,7 +72,8 @@ boolin(char *b)
break;
}
elog(WARN,"Invalid input string '%s'\n", b);
elog(WARN,"Bad boolean external representation '%s'", b);
/* not reached */
return (FALSE);
} /* boolin() */
@ -89,6 +90,7 @@ boolout(bool b)
return (result);
} /* boolout() */
/*****************************************************************************
* PUBLIC ROUTINES *
*****************************************************************************/
@ -127,4 +129,4 @@ bool
isfalse(bool arg1)
{
return(arg1 != TRUE);
} /* istrue() */
} /* isfalse() */