Commit 82be1bf5 authored by Michael Meskes's avatar Michael Meskes

Fix intoasc() in Informix compat lib. This function used to be a noop.

Patch by Michael Paquier
parent 091c02a9
......@@ -666,12 +666,16 @@ dttofmtasc(timestamp * ts, char *output, int str_len, char *fmtstr)
int
intoasc(interval * i, char *str)
{
char *tmp;
errno = 0;
str = PGTYPESinterval_to_asc(i);
tmp = PGTYPESinterval_to_asc(i);
if (!str)
if (!tmp)
return -errno;
memcpy(str, tmp, strlen(tmp));
free(tmp);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment