projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635f108
)
Fix DecodeInterval to handle '-0.1' sanely, per gripe from Tilo Schwarz.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 17 Dec 2003 21:45:51 +0000
(21:45 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 17 Dec 2003 21:45:51 +0000
(21:45 +0000)
src/backend/utils/adt/datetime.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/datetime.c
b/src/backend/utils/adt/datetime.c
index 823c5cc775fdbeed65abb6c2137dc4af8626c4aa..3d54883b267ac2bd0a51243c57ef6a280a66f748 100644
(file)
--- a/
src/backend/utils/adt/datetime.c
+++ b/
src/backend/utils/adt/datetime.c
@@
-3005,7
+3005,7
@@
DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm * tm, fse
if (*cp != '\0')
return DTERR_BAD_FORMAT;
- if (
val < 0
)
+ if (
*field[i] == '-'
)
fval = -(fval);
}
else if (*cp == '\0')