projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffcb149
)
Applied patch to fix two compatibility functions.
author
Michael Meskes
Wed, 16 Jul 2003 13:18:51 +0000
(13:18 +0000)
committer
Michael Meskes
Wed, 16 Jul 2003 13:18:51 +0000
(13:18 +0000)
src/interfaces/ecpg/compatlib/informix.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/compatlib/informix.c
b/src/interfaces/ecpg/compatlib/informix.c
index d8bbd0d434e4bfc2195d2c9d93954bd7192bc37f..d60019f68f9e26da636c621c48458edb9e4dbb96 100644
(file)
--- a/
src/interfaces/ecpg/compatlib/informix.c
+++ b/
src/interfaces/ecpg/compatlib/informix.c
@@
-415,8
+415,8
@@
rdatestr (Date d, char *str)
return -1210;
/* move to user allocated buffer */
- strcpy(
tmp, str
);
- free(
str
);
+ strcpy(
str, tmp
);
+ free(
tmp
);
return 0;
}
@@
-532,6
+532,10
@@
dtsub (Timestamp *ts1, Timestamp *ts2, Interval *iv)
int
dttoasc (Timestamp *ts, char *output)
{
+ char *asctime = PGTYPEStimestamp_to_asc( *ts );
+
+ strcpy (output, asctime);
+ free(asctime);
return 0;
}