Skip to content
Snippets Groups Projects
Commit c934ee78 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Change phrasing of input error message.

Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
parent 7e1a8a90
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -72,7 +72,8 @@ boolin(char *b)
break; break;
} }
elog(WARN,"Invalid input string '%s'\n", b); elog(WARN,"Bad boolean external representation '%s'", b);
/* not reached */
return (FALSE); return (FALSE);
} /* boolin() */ } /* boolin() */
...@@ -89,6 +90,7 @@ boolout(bool b) ...@@ -89,6 +90,7 @@ boolout(bool b)
return (result); return (result);
} /* boolout() */ } /* boolout() */
/***************************************************************************** /*****************************************************************************
* PUBLIC ROUTINES * * PUBLIC ROUTINES *
*****************************************************************************/ *****************************************************************************/
...@@ -127,4 +129,4 @@ bool ...@@ -127,4 +129,4 @@ bool
isfalse(bool arg1) isfalse(bool arg1)
{ {
return(arg1 != TRUE); return(arg1 != TRUE);
} /* istrue() */ } /* isfalse() */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment