diff options
author | Hiroshi Inoue | 2001-12-07 04:18:31 +0000 |
---|---|---|
committer | Hiroshi Inoue | 2001-12-07 04:18:31 +0000 |
commit | 88bd6415173b285c34382954a59a3d3341a856f3 (patch) | |
tree | 67fddecc3136d3bb8a065a07b61bcd1be113a184 | |
parent | 3f53f119001ead9dc1f7102a8666fda99527a61a (diff) |
Fix a lo_manage()'s bug.
-rw-r--r-- | contrib/lo/lo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lo/lo.c b/contrib/lo/lo.c index f06005499d..502949421b 100644 --- a/contrib/lo/lo.c +++ b/contrib/lo/lo.c @@ -176,7 +176,7 @@ lo_manage(PG_FUNCTION_ARGS) char *orig = SPI_getvalue(trigtuple, tupdesc, attnum); char *newv = SPI_getvalue(newtuple, tupdesc, attnum); - if ((orig != newv && (orig == NULL || newv == NULL)) || (orig != NULL && newv != NULL && strcmp(orig, newv))) + if (orig != NULL && (newv == NULL || strcmp(orig, newv))) DirectFunctionCall1(lo_unlink, ObjectIdGetDatum(atooid(orig))); |