Commit c934ee78 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Change phrasing of input error message.

Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
parent 7e1a8a90
......@@ -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() */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment