summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-08-03 00:10:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-08-03 00:10:58 +0000
commit8c378335b9aea40f26cbaabc73aea29bf455264b (patch)
treed01ddfcffaecaef87409344f701b51f157b3c5f2 /src/tutorial/complex.c
parent9e6dc1372f7ece296fc4a02b4c69f5ef86366acc (diff)
Fix core dump in QTNodeCompare when tsquery_cmp() is applied to two empty
tsqueries. CompareTSQ has to have a guard for the case rather than blindly applying QTNodeCompare to random data past the end of the datums. Also, change QTNodeCompare to be a little less trusting: use an actual test rather than just Assert'ing that the input is sane. Problem encountered while investigating another issue (I saw a core dump in autoanalyze on a table containing multiple empty tsquery values). Back-patch to all branches with tsquery support. In HEAD, also fix some bizarre (though not outright wrong) coding in tsq_mcontains().
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions