Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c934ee7

Browse files
author
Thomas G. Lockhart
committed
Change phrasing of input error message.
Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
1 parent 7e1a8a9 commit c934ee7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/utils/adt/bool.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.10 1997/10/30 16:45:12 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.11 1997/11/07 06:30:20 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -72,7 +72,8 @@ boolin(char *b)
7272
break;
7373
}
7474

75-
elog(WARN,"Invalid input string '%s'\n", b);
75+
elog(WARN,"Bad boolean external representation '%s'", b);
76+
/* not reached */
7677
return (FALSE);
7778
} /* boolin() */
7879

@@ -89,6 +90,7 @@ boolout(bool b)
8990
return (result);
9091
} /* boolout() */
9192

93+
9294
/*****************************************************************************
9395
* PUBLIC ROUTINES *
9496
*****************************************************************************/
@@ -127,4 +129,4 @@ bool
127129
isfalse(bool arg1)
128130
{
129131
return(arg1 != TRUE);
130-
} /* istrue() */
132+
} /* isfalse() */

0 commit comments

Comments
 (0)