mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Fix bogus Assert, per buildfarm results.
This commit is contained in:
parent
172eacba43
commit
f7082f269e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/hstore_op.c,v 1.14 2009/09/30 19:50:22 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/hstore_op.c,v 1.15 2009/09/30 21:26:17 tgl Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -1236,8 +1236,10 @@ hstore_hash(PG_FUNCTION_ARGS)
|
|||||||
* but we make it explicit here.
|
* but we make it explicit here.
|
||||||
*/
|
*/
|
||||||
Assert(VARSIZE(hs) ==
|
Assert(VARSIZE(hs) ==
|
||||||
|
(HS_COUNT(hs) != 0 ?
|
||||||
CALCDATASIZE(HS_COUNT(hs),
|
CALCDATASIZE(HS_COUNT(hs),
|
||||||
HSE_ENDPOS(ARRPTR(hs)[2*HS_COUNT(hs) - 1])));
|
HSE_ENDPOS(ARRPTR(hs)[2*HS_COUNT(hs) - 1])) :
|
||||||
|
HSHRDSIZE));
|
||||||
|
|
||||||
PG_FREE_IF_COPY(hs,0);
|
PG_FREE_IF_COPY(hs,0);
|
||||||
PG_RETURN_DATUM(hval);
|
PG_RETURN_DATUM(hval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user