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

Commitef3b7cd

Browse files
committed
Add an implicit cast from varchar to regclass, so that existing code
of the form nextval('foo'::varchar) doesn't break. Per gripe fromJean-Pierre Pelletier. Initdb forced :-(
1 parent5aad28a commitef3b7cd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

‎src/include/catalog/catversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
3838
* Portions Copyright (c) 1994, Regents of the University of California
3939
*
40-
* $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.304 2005/10/06 02:29:18 tgl Exp $
40+
* $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.305 2005/10/21 15:45:06 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO200510051
56+
#defineCATALOG_VERSION_NO200510211
5757

5858
#endif

‎src/include/catalog/pg_cast.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
1212
*
13-
* $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.23 2005/10/15 02:49:42 momjian Exp $
13+
* $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.24 2005/10/21 15:45:06 tgl Exp $
1414
*
1515
* NOTES
1616
* the genbki.sh script reads this file and generates .bki
@@ -114,9 +114,9 @@ DATA(insert (16232558 e ));
114114
* from OID to int4 or int8. Similarly for each OID-alias type. Also allow
115115
* implicit coercions between OID and each OID-alias type, as well as
116116
* regproc<->regprocedure and regoper<->regoperator. (Other coercions
117-
* between alias types must pass through OID.)Lastly, thereis an implicit
118-
*cast from text to regclass, whichexists mainly to support legacy forms
119-
* of nextval() and related functions.
117+
* between alias types must pass through OID.)Lastly, thereare implicit
118+
*casts from textand varcharto regclass, whichexist mainly to support
119+
*legacy formsof nextval() and related functions.
120120
*/
121121
DATA(insert (20261287i ));
122122
DATA(insert (2126313i ));
@@ -170,6 +170,7 @@ DATA(insert (23 2206 0 i ));
170170
DATA(insert (2206201288a ));
171171
DATA(insert (2206230a ));
172172
DATA(insert (2522051079i ));
173+
DATA(insert (104322051079i ));
173174

174175
/*
175176
* String category: this needs to be tightened up

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp