Skip to content

Commit 85a95b9

Browse files
committed
Here is the Mismatched input/output patch for tintervals as reported over
the last week on Hackers...(A coulpe of clippings of the final verdict are included below + the diff). From: Wayde Nie <niew@phoenix.cis.mcmaster.ca>
1 parent fd8e90a commit 85a95b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/adt/date.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.8 1997/04/04 08:53:08 scrappy Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.9 1997/04/20 21:49:17 scrappy Exp $
1313
*
1414
* NOTES
1515
* This code is actually (almost) unused.
@@ -216,19 +216,19 @@ char *tintervalout(TimeInterval interval)
216216
char *i_str, *p;
217217

218218
i_str = (char *) palloc( T_INTERVAL_LEN ); /* ['...' '...'] */
219-
(void) strcpy(i_str,"['");
219+
(void) strcpy(i_str,"[\"");
220220
if (interval->status == T_INTERVAL_INVAL)
221221
(void) strcat(i_str,INVALID_INTERVAL_STR);
222222
else {
223223
p = nabstimeout(interval->data[0]);
224224
(void) strcat(i_str,p);
225225
pfree(p);
226-
(void) strcat(i_str,"' '");
226+
(void) strcat(i_str,"\" \"");
227227
p = nabstimeout(interval->data[1]);
228228
(void) strcat(i_str,p);
229229
pfree(p);
230230
}
231-
(void) strcat(i_str,"']\0");
231+
(void) strcat(i_str,"\"]\0");
232232
return(i_str);
233233
}
234234

0 commit comments

Comments
 (0)