Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96be4b2

Browse files
author
Michael Meskes
committed
Applied patch to fix two compatibility functions.
1 parentffcb149 commit96be4b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/interfaces/ecpg/compatlib/informix.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ rdatestr (Date d, char *str)
415415
return-1210;
416416

417417
/* move to user allocated buffer */
418-
strcpy(tmp,str);
419-
free(str);
418+
strcpy(str,tmp);
419+
free(tmp);
420420

421421
return0;
422422
}
@@ -532,6 +532,10 @@ dtsub (Timestamp *ts1, Timestamp *ts2, Interval *iv)
532532
int
533533
dttoasc (Timestamp*ts,char*output)
534534
{
535+
char*asctime=PGTYPEStimestamp_to_asc(*ts );
536+
537+
strcpy (output,asctime);
538+
free(asctime);
535539
return0;
536540
}
537541

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp