File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2514,7 +2514,7 @@ Datum vops_populate(PG_FUNCTION_ARGS)
2514
2514
types [i ].tid = vops_get_type (type_id );
2515
2515
get_typlenbyvalalign (type_id , & types [i ].len , & types [i ].byval , & types [i ].align );
2516
2516
if (types [i ].tid != VOPS_LAST && types [i ].len < 0 ) { /* varying length type: extract size from atttypmod */
2517
- types [i ].len = DatumGetInt32 (SPI_getbinval (spi_tuple , spi_tupdesc , 3 , & is_null )) - VARHDRSZ ;
2517
+ types [i ].len = DatumGetInt32 (SPI_getbinval (spi_tuple , spi_tupdesc , 3 , & is_null ));
2518
2518
if (types [i ].len < 0 ) {
2519
2519
elog (ERROR , "Size of column %s is unknown" , name );
2520
2520
}
@@ -2751,7 +2751,7 @@ Datum vops_import(PG_FUNCTION_ARGS)
2751
2751
}
2752
2752
get_typlenbyvalalign (type_id , & types [i ].len , & types [i ].byval , & types [i ].align );
2753
2753
if (types [i ].len < 0 ) { /* varying length type: extract size from atttypmod */
2754
- types [i ].len = DatumGetInt32 (SPI_getbinval (spi_tuple , spi_tupdesc , 3 , & is_null )) - VARHDRSZ ;
2754
+ types [i ].len = DatumGetInt32 (SPI_getbinval (spi_tuple , spi_tupdesc , 3 , & is_null ));
2755
2755
if (types [i ].len < 0 ) {
2756
2756
elog (ERROR , "Size of column %s is unknown" , name );
2757
2757
}
You can’t perform that action at this time.
0 commit comments