提交 c934ee78 编写于 作者: T Thomas G. Lockhart

Change phrasing of input error message.

Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册