Thanks to visit codestin.com Credit goes to github.com
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 a9b6b01 commit 4b70629Copy full SHA for 4b70629
src/bin/psql/large_obj.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright 2000 by PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.11 2000/10/24 01:38:39 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.12 2000/10/24 04:13:28 tgl Exp $
7
*/
8
#include "postgres.h"
9
#include "large_obj.h"
@@ -328,9 +328,8 @@ do_lo_list(void)
328
printQueryOpt myopt = pset.popt;
329
330
strcpy(buf,
331
- "SELECT DISTINCT loid as \"ID\",\n"
332
- " obj_description(loid) as \"Description\"\n"
333
- "FROM pg_largeobject\n"
+ "SELECT loid as \"ID\", obj_description(loid) as \"Description\"\n"
+ "FROM (SELECT DISTINCT loid FROM pg_largeobject) x\n"
334
"ORDER BY \"ID\"");
335
336
res = PSQLexec(buf);
0 commit comments