A small fix, where default: condition in case had not 'break;'...not required,
but, IMHO, cleaner
This commit is contained in:
parent
88d740462f
commit
9778b946e5
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.22 1997/04/02 18:33:50 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.23 1997/04/15 17:46:52 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -223,6 +223,7 @@ printf( "nabstimein- %d fields are type %d (DTK_DATE=%d)\n", nf, dtype, DTK_DATE
|
|||||||
default:
|
default:
|
||||||
elog(WARN,"Bad abstime (internal coding error) '%s'",str);
|
elog(WARN,"Bad abstime (internal coding error) '%s'",str);
|
||||||
result = INVALID_ABSTIME;
|
result = INVALID_ABSTIME;
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -550,6 +551,7 @@ abstime_datetime(AbsoluteTime abstime)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
*result = abstime + ((date2j( 1970, 1, 1) - date2j( 2000, 1, 1))*86400);
|
*result = abstime + ((date2j( 1970, 1, 1) - date2j( 2000, 1, 1))*86400);
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
return(result);
|
return(result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user