Fix oid8in and int28in for spaces

This commit is contained in:
Bruce Momjian 2000-01-10 05:23:47 +00:00
parent a040281787
commit 5770935965
2 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.28 2000/01/10 05:20:23 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.29 2000/01/10 05:23:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -90,8 +90,9 @@ int28in(char *intString)
{
if (sscanf(intString, "%hd", &result[slot]) != 1)
break;
while (*intString && *intString != ' ')
do
intString++;
while (*intString && *intString != ' ')
}
while (slot < INDEX_MAX_KEYS)
result[slot++] = 0;

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.29 2000/01/10 04:36:34 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.30 2000/01/10 05:23:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -41,8 +41,9 @@ oid8in(char *oidString)
{
if (sscanf(oidString, "%u", &result[slot]) != 1)
break;
while (*oidString && *oidString != ' ')
do
oidString++;
while (*oidString && *oidString != ' ')
}
while (slot < INDEX_MAX_KEYS)
result[slot++] = 0;