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

Commit060229b

Browse files
author
Michael Meskes
committed
Fixed mdy functions to use correct offset.
1 parent0643b6a commit060229b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,10 @@ Thu Jul 17 09:15:59 CEST 2003
15871587
Fri Jul 18 16:31:10 CEST 2003
15881588

15891589
- Added some more compatibility features to the parser.
1590+
1591+
Thu Jul 24 10:33:51 CEST 2003
1592+
1593+
- Fixed mdy functions to use correct offset.
15901594
- Set ecpg version to 3.0.0
15911595
- Set ecpg library to 4.0.0
15921596
- Set pgtypes library to 1.0.0

‎src/interfaces/ecpg/pgtypeslib/datetime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ PGTYPESdate_julmdy(Date jd, int* mdy)
100100
{
101101
inty,m,d;
102102

103-
j2date((int)jd,&y,&m,&d);
103+
j2date((int)(jd+date2j(2000,1,1)),&y,&m,&d);
104104
mdy[0]=m;
105105
mdy[1]=d;
106106
mdy[2]=y;
@@ -113,7 +113,7 @@ PGTYPESdate_mdyjul(int* mdy, Date *jdate)
113113
/* day is mdy[1] */
114114
/* year is mdy[2] */
115115

116-
*jdate= (Date)date2j(mdy[2],mdy[0],mdy[1]);
116+
*jdate= (Date)(date2j(mdy[2],mdy[0],mdy[1])-date2j(2000,1,1));
117117
}
118118

119119
int

‎src/interfaces/ecpg/test/test_informix.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main()
3636

3737
while (1)
3838
{
39-
$fetchin c into :i, :j;
39+
$fetchforward c into :i, :j;
4040
if (sqlca.sqlcode == 100) break;
4141
else if (sqlca.sqlcode != 0) printf ("Error: %ld\n", sqlca.sqlcode);
4242

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp