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
7d32551a
Commit
7d32551a
authored
Jul 17, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some bugs in Informix compat functions.
parent
764f72dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/compatlib/informix.c
+12
-2
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/misc.c
+2
-2
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/datetime.c
+3
-3
No files found.
src/interfaces/ecpg/compatlib/informix.c
View file @
7d32551a
...
...
@@ -443,7 +443,12 @@ rtoday (Date *d)
int
rjulmdy
(
Date
d
,
short
mdy
[
3
])
{
PGTYPESdate_julmdy
(
d
,
(
int
*
)
mdy
);
int
mdy_int
[
3
];
PGTYPESdate_julmdy
(
d
,
mdy_int
);
mdy
[
0
]
=
(
short
)
mdy_int
[
0
];
mdy
[
1
]
=
(
short
)
mdy_int
[
1
];
mdy
[
2
]
=
(
short
)
mdy_int
[
2
];
return
0
;
}
...
...
@@ -482,7 +487,12 @@ rfmtdate (Date d, char *fmt, char *str)
int
rmdyjul
(
short
mdy
[
3
],
Date
*
d
)
{
PGTYPESdate_mdyjul
((
int
*
)
mdy
,
d
);
int
mdy_int
[
3
];
mdy_int
[
0
]
=
mdy
[
0
];
mdy_int
[
1
]
=
mdy
[
1
];
mdy_int
[
2
]
=
mdy
[
2
];
PGTYPESdate_mdyjul
(
mdy_int
,
d
);
return
0
;
}
...
...
src/interfaces/ecpg/ecpglib/misc.c
View file @
7d32551a
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.
9 2003/07/01 12:40:51
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.
10 2003/07/17 07:54:29
meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -308,7 +308,7 @@ ECPGset_informix_null(enum ECPGttype type, void *ptr)
static
bool
_check
(
unsigned
char
*
ptr
,
int
length
)
{
for
(;
ptr
[
length
]
==
0xff
&&
length
>=
0
;
length
--
);
for
(;
ptr
[
--
length
]
==
0xff
&&
length
>=
0
;
length
--
);
if
(
length
<
0
)
return
true
;
return
false
;
}
...
...
src/interfaces/ecpg/pgtypeslib/datetime.c
View file @
7d32551a
...
...
@@ -101,9 +101,9 @@ PGTYPESdate_julmdy(Date jd, int* mdy)
int
y
,
m
,
d
;
j2date
((
int
)
jd
,
&
y
,
&
m
,
&
d
);
mdy
[
0
]
=
(
short
int
)
m
;
mdy
[
1
]
=
(
short
int
)
d
;
mdy
[
2
]
=
(
short
int
)
y
;
mdy
[
0
]
=
m
;
mdy
[
1
]
=
d
;
mdy
[
2
]
=
y
;
}
void
...
...
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