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
2ab3a888
Commit
2ab3a888
authored
23 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
Accept subsequent commits. This should have been just a warning anyway. I
cannot see a reason why it should be an error.
parent
85bc3615
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
+4
-0
4 additions, 0 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/lib/misc.c
+10
-5
10 additions, 5 deletions
src/interfaces/ecpg/lib/misc.c
with
14 additions
and
5 deletions
src/interfaces/ecpg/ChangeLog
+
4
−
0
View file @
2ab3a888
...
@@ -1207,5 +1207,9 @@ Sat Jan 12 22:04:02 CET 2002
...
@@ -1207,5 +1207,9 @@ Sat Jan 12 22:04:02 CET 2002
- Fixed variable handling for struct members.
- Fixed variable handling for struct members.
- Removed check for array input. An attribut might store the
- Removed check for array input. An attribut might store the
complete array.
complete array.
Fri Jan 18 16:49:02 CET 2002
- Accept subsequent commits.
- Set ecpg version to 2.9.0.
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
- Set library version to 3.3.0.
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/lib/misc.c
+
10
−
5
View file @
2ab3a888
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/misc.c,v 1.1
1
2001/1
2/23 12:17:41
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/misc.c,v 1.1
2
20
02/
01/1
8 15:51:00
meskes Exp $ */
#include
"postgres_fe.h"
#include
"postgres_fe.h"
...
@@ -90,12 +90,17 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
...
@@ -90,12 +90,17 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
/* if we have no connection we just simulate the command */
/* if we have no connection we just simulate the command */
if
(
con
&&
con
->
connection
)
if
(
con
&&
con
->
connection
)
{
{
if
((
res
=
PQexec
(
con
->
connection
,
transaction
))
==
NULL
)
/* if we are not in autocommit mode, already have committed
* the transaction and get another commit, just ignore it */
if
(
!
con
->
committed
||
con
->
autocommit
)
{
{
ECPGraise
(
lineno
,
ECPG_TRANS
,
NULL
);
if
((
res
=
PQexec
(
con
->
connection
,
transaction
))
==
NULL
)
return
FALSE
;
{
ECPGraise
(
lineno
,
ECPG_TRANS
,
NULL
);
return
FALSE
;
}
PQclear
(
res
);
}
}
PQclear
(
res
);
}
}
if
(
strcmp
(
transaction
,
"commit"
)
==
0
||
strcmp
(
transaction
,
"rollback"
)
==
0
)
if
(
strcmp
(
transaction
,
"commit"
)
==
0
||
strcmp
(
transaction
,
"rollback"
)
==
0
)
...
...
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