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

Commitef06ec6

Browse files
committed
Small varlena cleanup.
1 parent0f413d2 commitef06ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/nodes/copyfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.35 1998/01/20 22:10:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.36 1998/01/21 23:42:15 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -803,7 +803,7 @@ _copyConst(Const *from)
803803
*/
804804
intlength;
805805

806-
length=*((int*)from->constvalue);
806+
length=VARSIZE(from->constvalue);
807807
newnode->constvalue=PointerGetDatum(palloc(length));
808808
memmove((char*)newnode->constvalue,
809809
(char*)from->constvalue,length);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp