Skip to content

Commit 9778b94

Browse files
committed
A small fix, where default: condition in case had not 'break;'...not required,
but, IMHO, cleaner
1 parent 88d7404 commit 9778b94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/utils/adt/nabstime.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.22 1997/04/02 18:33:50 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.23 1997/04/15 17:46:52 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -223,6 +223,7 @@ printf( "nabstimein- %d fields are type %d (DTK_DATE=%d)\n", nf, dtype, DTK_DATE
223223
default:
224224
elog(WARN,"Bad abstime (internal coding error) '%s'",str);
225225
result = INVALID_ABSTIME;
226+
break;
226227
};
227228

228229
return result;
@@ -550,6 +551,7 @@ abstime_datetime(AbsoluteTime abstime)
550551

551552
default:
552553
*result = abstime + ((date2j( 1970, 1, 1) - date2j( 2000, 1, 1))*86400);
554+
break;
553555
};
554556

555557
return(result);

0 commit comments

Comments
 (0)