8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62be40 commit ffc703aCopy full SHA for ffc703a
src/backend/utils/adt/rangetypes.c
@@ -1313,7 +1313,7 @@ tsrange_subdiff(PG_FUNCTION_ARGS)
1313
#ifdef HAVE_INT64_TIMESTAMP
1314
result = ((float8)(v1-v2)) / USECS_PER_SEC;
1315
#else
1316
- result = timestamp;
+ result = v1 - v2;
1317
#endif
1318
1319
PG_RETURN_FLOAT8(result);
@@ -1329,7 +1329,7 @@ tstzrange_subdiff(PG_FUNCTION_ARGS)
1329
1330
1331
1332
1333
1334
1335
0 commit comments