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
23e4fc18
Commit
23e4fc18
authored
21 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
Fixed informix behaviour for select without into.
parent
79fafdf4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/ecpg/ChangeLog
+5
-0
5 additions, 0 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ecpglib/execute.c
+7
-6
7 additions, 6 deletions
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/test/test_informix.pgc
+6
-0
6 additions, 0 deletions
src/interfaces/ecpg/test/test_informix.pgc
with
18 additions
and
6 deletions
src/interfaces/ecpg/ChangeLog
+
5
−
0
View file @
23e4fc18
...
@@ -1541,6 +1541,11 @@ Tue Jul 1 11:57:56 CEST 2003
...
@@ -1541,6 +1541,11 @@ Tue Jul 1 11:57:56 CEST 2003
- Added a new data type "decimal" which is mostly the same as our
- Added a new data type "decimal" which is mostly the same as our
"numeric" but uses a fixed length array to store the digits. This is
"numeric" but uses a fixed length array to store the digits. This is
for compatibility with Informix and maybe others.
for compatibility with Informix and maybe others.
Wed Jul 2 09:45:59 CEST 2003
- Fixed initialization bug in compatlib.
- Added postgres_fe.h to all files in pgtypeslib.
- 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/ecpglib/execute.c
+
7
−
6
View file @
23e4fc18
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.1
4
2003/07/0
1
1
2:40:51
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.1
5
2003/07/0
4
1
1:30:48
meskes Exp $ */
/*
/*
* The aim is to get a simpler inteface to the database routines.
* The aim is to get a simpler inteface to the database routines.
...
@@ -1173,15 +1173,16 @@ ECPGexecute(struct statement * stmt)
...
@@ -1173,15 +1173,16 @@ ECPGexecute(struct statement * stmt)
else
else
for
(
act_field
=
0
;
act_field
<
nfields
&&
status
;
act_field
++
)
for
(
act_field
=
0
;
act_field
<
nfields
&&
status
;
act_field
++
)
{
{
if
(
var
==
NULL
)
if
(
var
!=
NULL
)
{
status
=
ECPGstore_result
(
results
,
act_field
,
stmt
,
var
);
var
=
var
->
next
;
}
else
if
(
!
INFORMIX_MODE
(
stmt
->
compat
))
{
{
ECPGraise
(
stmt
->
lineno
,
ECPG_TOO_FEW_ARGUMENTS
,
NULL
);
ECPGraise
(
stmt
->
lineno
,
ECPG_TOO_FEW_ARGUMENTS
,
NULL
);
return
(
false
);
return
(
false
);
}
}
status
=
ECPGstore_result
(
results
,
act_field
,
stmt
,
var
);
var
=
var
->
next
;
}
}
if
(
status
&&
var
!=
NULL
)
if
(
status
&&
var
!=
NULL
)
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/test_informix.pgc
+
6
−
0
View file @
23e4fc18
...
@@ -47,6 +47,12 @@ int main()
...
@@ -47,6 +47,12 @@ int main()
$delete from test where i=:n;
$delete from test where i=:n;
printf("delete: %ld\n", sqlca.sqlcode);
printf("delete: %ld\n", sqlca.sqlcode);
$select 1 from test where i=14;
printf("Exists: %ld\n", sqlca.sqlcode);
$select 1 from test where i=147;
printf("Does not exist: %ld\n", sqlca.sqlcode);
$commit;
$commit;
$drop table test;
$drop table test;
$commit;
$commit;
...
...
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