We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9992f2b commit aa82ac8Copy full SHA for aa82ac8
contrib/lo/lo.c
@@ -1,7 +1,7 @@
1
/*
2
* PostgreSQL type definitions for managed LargeObjects.
3
*
4
- * $Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.10 2001/10/28 06:25:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.11 2001/12/07 04:18:31 inoue Exp $
5
6
*/
7
@@ -176,7 +176,7 @@ lo_manage(PG_FUNCTION_ARGS)
176
char *orig = SPI_getvalue(trigtuple, tupdesc, attnum);
177
char *newv = SPI_getvalue(newtuple, tupdesc, attnum);
178
179
- if ((orig != newv && (orig == NULL || newv == NULL)) || (orig != NULL && newv != NULL && strcmp(orig, newv)))
+ if (orig != NULL && (newv == NULL || strcmp(orig, newv)))
180
DirectFunctionCall1(lo_unlink,
181
ObjectIdGetDatum(atooid(orig)));
182
0 commit comments