mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Small varlena cleanup.
This commit is contained in:
parent
0f413d2dc2
commit
ef06ec61e6
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.35 1998/01/20 22:10:58 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.36 1998/01/21 23:42:15 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -803,7 +803,7 @@ _copyConst(Const *from)
|
|||||||
*/
|
*/
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
length = *((int *) from->constvalue);
|
length = VARSIZE(from->constvalue);
|
||||||
newnode->constvalue = PointerGetDatum(palloc(length));
|
newnode->constvalue = PointerGetDatum(palloc(length));
|
||||||
memmove((char *) newnode->constvalue,
|
memmove((char *) newnode->constvalue,
|
||||||
(char *) from->constvalue, length);
|
(char *) from->constvalue, length);
|
||||||
|
Loading…
Reference in New Issue
Block a user