diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-07 22:11:43 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-07 22:11:43 +0000 |
commit | fe1a9c336290cde8a1dacc56d0161b123fcc18a1 (patch) | |
tree | 42fc9f5cddbf18776b5a291cd03b465d1ace54d7 /contrib/intarray/_int.c | |
parent | e206ff59467458cd5a9af593c45565641f218a09 (diff) | |
download | postgresql-fe1a9c336290cde8a1dacc56d0161b123fcc18a1.tar.gz postgresql-fe1a9c336290cde8a1dacc56d0161b123fcc18a1.zip |
Repair some problems in GIST-index contrib modules. Patch from
Teodor Sigaev <teodor@stack.net>.
Diffstat (limited to 'contrib/intarray/_int.c')
-rw-r--r-- | contrib/intarray/_int.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/intarray/_int.c b/contrib/intarray/_int.c index a642998cd44..35ee7a659e2 100644 --- a/contrib/intarray/_int.c +++ b/contrib/intarray/_int.c @@ -1457,6 +1457,10 @@ _int_common_picksplit(bytea *entryvec, v->spl_nleft = 0; right = v->spl_right; v->spl_nright = 0; + if ( seed_1 == 0 || seed_2 == 0 ) { + seed_1 = 1; + seed_2 = 2; + } datum_alpha = (ArrayType *) DatumGetPointer(((GISTENTRY *) VARDATA(entryvec))[seed_1].key); datum_l = copy_intArrayType(datum_alpha); |