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

Commit1a395b7

Browse files
committed
ALTER TABLE (text) fix
1 parent6da0055 commit1a395b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/command.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.6 1996/11/17 04:23:10 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.7 1997/01/02 06:18:25 momjian Exp $
1111
*
1212
* NOTES
1313
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -444,10 +444,10 @@ PerformAddAttribute(char *relationName,
444444
}
445445
namestrcpy(&(attribute->attname), (char*)key[1].sk_argument);
446446
attribute->atttypid=typeTuple->t_oid;
447-
if (form->typlen>0)
448-
attribute->attlen=form->typlen;
449-
else/* bpchar and varchar */
447+
if (colDef->typename->typlen>0)
450448
attribute->attlen=colDef->typename->typlen;
449+
else/* bpchar, varchar, text */
450+
attribute->attlen=form->typlen;
451451
attribute->attnum=i;
452452
attribute->attbyval=form->typbyval;
453453
attribute->attnelems=attnelems;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp