Skip to content

Commit ef06ec6

Browse files
committed
Small varlena cleanup.
1 parent 0f413d2 commit ef06ec6

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
int length;
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy