Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit936afc8

Browse files
committed
Fix obj_description() and col_description() functions to work reliably
in presence of schemas.
1 parent1e4f34f commit936afc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/catalog/pg_proc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_proc.h,v 1.234 2002/04/2601:24:08 tgl Exp $
10+
* $Id: pg_proc.h,v 1.235 2002/04/30 21:01:52 tgl Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1493,9 +1493,9 @@ DESCR("date difference preserving months and years");
14931493
DATA(insertOID=1200 (reltimePGNSPPGUID12ftftfi1703"23"10000100int4reltime-_null_ ));
14941494
DESCR("convert int4 to reltime");
14951495

1496-
DATA(insertOID=1215 (obj_descriptionPGNSPPGUID14ftftfs225"26 19"10000100"select description from pg_description where objoid = $1 and classoid = (select oid from pg_class where relname = $2) and objsubid = 0"-_null_ ));
1496+
DATA(insertOID=1215 (obj_descriptionPGNSPPGUID14ftftfs225"26 19"10000100"select description from pg_description where objoid = $1 and classoid = (select oid from pg_class where relname = $2 and relnamespace = PGNSP) and objsubid = 0"-_null_ ));
14971497
DESCR("get description for object id and catalog name");
1498-
DATA(insertOID=1216 (col_descriptionPGNSPPGUID14ftftfs225"26 23"10000100"select description from pg_description where objoid = $1 and classoid =(select oid from pg_class where relname = \'pg_class\') and objsubid = $2"-_null_ ));
1498+
DATA(insertOID=1216 (col_descriptionPGNSPPGUID14ftftfs225"26 23"10000100"select description from pg_description where objoid = $1 and classoid =\'pg_catalog.pg_class\'::regclass and objsubid = $2"-_null_ ));
14991499
DESCR("get description for table column");
15001500

15011501
DATA(insertOID=1217 (date_truncPGNSPPGUID12ftftfi21184"25 1184"10000100timestamptz_trunc-_null_ ));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp