Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
abfa8ae5
"...postgres-lambda-diff.git" did not exist on "b3aaf9081a1a95c245fd605dcf02c91b3a5c3a29"
Commit
abfa8ae5
authored
21 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some Informix compat functions so they handle NULL resp. indicators better.
parent
4afcba05
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/interfaces/ecpg/ChangeLog
+6
-0
6 additions, 0 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/compatlib/informix.c
+24
-0
24 additions, 0 deletions
src/interfaces/ecpg/compatlib/informix.c
with
30 additions
and
0 deletions
src/interfaces/ecpg/ChangeLog
+
6
−
0
View file @
abfa8ae5
...
@@ -1563,6 +1563,12 @@ Tue Jul 8 12:34:00 CEST 2003
...
@@ -1563,6 +1563,12 @@ Tue Jul 8 12:34:00 CEST 2003
- Made Informix decimal-ascii conversion honor Informix NULLs.
- Made Informix decimal-ascii conversion honor Informix NULLs.
- Informix variable handling didn't cope well with arrays.
- Informix variable handling didn't cope well with arrays.
Wed Jul 9 11:45:02 CEST 2003
- Made all Informix functions honor Informix NULLs.
- Extended compatibility functions for INFORMIX handling of DECLARE
statement to work with indicators.
- Set ecpg version to 3.0.0
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
- Set pgtypes library to 1.0.0
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/compatlib/informix.c
+
24
−
0
View file @
abfa8ae5
...
@@ -55,6 +55,12 @@ deccall3(Decimal *arg1, Decimal *arg2, Decimal *result, int (*ptr)(Numeric *, Nu
...
@@ -55,6 +55,12 @@ deccall3(Decimal *arg1, Decimal *arg2, Decimal *result, int (*ptr)(Numeric *, Nu
Numeric
*
a1
,
*
a2
,
*
nres
;
Numeric
*
a1
,
*
a2
,
*
nres
;
int
i
;
int
i
;
if
(
risnull
(
CDECIMALTYPE
,
(
char
*
)
arg1
)
||
risnull
(
CDECIMALTYPE
,
(
char
*
)
arg2
))
{
rsetnull
(
CDECIMALTYPE
,
(
char
*
)
result
);
return
0
;
}
if
((
a1
=
PGTYPESnumeric_new
())
==
NULL
)
if
((
a1
=
PGTYPESnumeric_new
())
==
NULL
)
return
-
1211
;
return
-
1211
;
...
@@ -191,6 +197,12 @@ deccvdbl(double dbl, Decimal *np)
...
@@ -191,6 +197,12 @@ deccvdbl(double dbl, Decimal *np)
Numeric
*
nres
=
PGTYPESnumeric_new
();
Numeric
*
nres
=
PGTYPESnumeric_new
();
int
result
=
1
;
int
result
=
1
;
if
(
risnull
(
CDOUBLETYPE
,
(
char
*
)
&
dbl
))
{
rsetnull
(
CDECIMALTYPE
,
(
char
*
)
np
);
return
0
;
}
if
(
nres
==
NULL
)
if
(
nres
==
NULL
)
return
-
1211
;
return
-
1211
;
...
@@ -208,6 +220,12 @@ deccvint(int in, Decimal *np)
...
@@ -208,6 +220,12 @@ deccvint(int in, Decimal *np)
Numeric
*
nres
=
PGTYPESnumeric_new
();
Numeric
*
nres
=
PGTYPESnumeric_new
();
int
result
=
1
;
int
result
=
1
;
if
(
risnull
(
CINTTYPE
,
(
char
*
)
&
in
))
{
rsetnull
(
CDECIMALTYPE
,
(
char
*
)
np
);
return
0
;
}
if
(
nres
==
NULL
)
if
(
nres
==
NULL
)
return
-
1211
;
return
-
1211
;
...
@@ -225,6 +243,12 @@ deccvlong(long lng, Decimal *np)
...
@@ -225,6 +243,12 @@ deccvlong(long lng, Decimal *np)
Numeric
*
nres
=
PGTYPESnumeric_new
();
Numeric
*
nres
=
PGTYPESnumeric_new
();
int
result
=
1
;
int
result
=
1
;
if
(
risnull
(
CLONGTYPE
,
(
char
*
)
&
lng
))
{
rsetnull
(
CDECIMALTYPE
,
(
char
*
)
np
);
return
0
;
}
if
(
nres
==
NULL
)
if
(
nres
==
NULL
)
return
-
1211
;
return
-
1211
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment