8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f413d2 commit ef06ec6Copy full SHA for ef06ec6
src/backend/nodes/copyfuncs.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $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 $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -803,7 +803,7 @@ _copyConst(Const *from)
803
804
int length;
805
806
- length = *((int *) from->constvalue);
+ length = VARSIZE(from->constvalue);
807
newnode->constvalue = PointerGetDatum(palloc(length));
808
memmove((char *) newnode->constvalue,
809
(char *) from->constvalue, length);
0 commit comments