Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
060229b9
Commit
060229b9
authored
Jul 24, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mdy functions to use correct offset.
parent
0643b6a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/datetime.c
+2
-2
src/interfaces/ecpg/test/test_informix.pgc
src/interfaces/ecpg/test/test_informix.pgc
+1
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
060229b9
...
...
@@ -1587,6 +1587,10 @@ Thu Jul 17 09:15:59 CEST 2003
Fri Jul 18 16:31:10 CEST 2003
- Added some more compatibility features to the parser.
Thu Jul 24 10:33:51 CEST 2003
- Fixed mdy functions to use correct offset.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/pgtypeslib/datetime.c
View file @
060229b9
...
...
@@ -100,7 +100,7 @@ PGTYPESdate_julmdy(Date jd, int* mdy)
{
int
y
,
m
,
d
;
j2date
((
int
)
jd
,
&
y
,
&
m
,
&
d
);
j2date
((
int
)
(
jd
+
date2j
(
2000
,
1
,
1
))
,
&
y
,
&
m
,
&
d
);
mdy
[
0
]
=
m
;
mdy
[
1
]
=
d
;
mdy
[
2
]
=
y
;
...
...
@@ -113,7 +113,7 @@ PGTYPESdate_mdyjul(int* mdy, Date *jdate)
/* day is mdy[1] */
/* year is mdy[2] */
*
jdate
=
(
Date
)
date2j
(
mdy
[
2
],
mdy
[
0
],
mdy
[
1
]
);
*
jdate
=
(
Date
)
(
date2j
(
mdy
[
2
],
mdy
[
0
],
mdy
[
1
])
-
date2j
(
2000
,
1
,
1
)
);
}
int
...
...
src/interfaces/ecpg/test/test_informix.pgc
View file @
060229b9
...
...
@@ -36,7 +36,7 @@ int main()
while (1)
{
$fetch
in
c into :i, :j;
$fetch
forward
c into :i, :j;
if (sqlca.sqlcode == 100) break;
else if (sqlca.sqlcode != 0) printf ("Error: %ld\n", sqlca.sqlcode);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment