projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba2e1b
)
Move from strcmp to strncmp to be more tolerant for changes to the parser.
author
Michael Meskes
<
[email protected]
>
Sat, 1 Nov 2008 19:53:35 +0000
(19:53 +0000)
committer
Michael Meskes
<
[email protected]
>
Sat, 1 Nov 2008 19:53:35 +0000
(19:53 +0000)
src/interfaces/ecpg/ecpglib/misc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/misc.c
b/src/interfaces/ecpg/ecpglib/misc.c
index e8e80582b7382d69a5d11e0dc429901c99624c20..d48cb9e957337daa68e3664f562c162642b035db 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/misc.c
+++ b/
src/interfaces/ecpg/ecpglib/misc.c
@@
-204,7
+204,7
@@
ECPGtrans(int lineno, const char *connection_name, const char *transaction)
PQclear(res);
}
- if (str
cmp(transaction, "commit") == 0 || strcmp(transaction, "rollback"
) == 0)
+ if (str
ncmp(transaction, "commit", 6) == 0 || strncmp(transaction, "rollback", 8
) == 0)
con->committed = true;
else
con->committed = false;