mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Change phrasing of input error message.
Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
This commit is contained in:
parent
7e1a8a90f8
commit
c934ee7859
@ -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() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user