~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to contrib/ltree/ltxtquery_op.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * txtquery operations with ltree
3
3
 * Teodor Sigaev <teodor@stack.net>
4
 
 * $PostgreSQL: pgsql/contrib/ltree/ltxtquery_op.c,v 1.9 2008/06/30 18:30:48 teodor Exp $
 
4
 * $PostgreSQL: pgsql/contrib/ltree/ltxtquery_op.c,v 1.10 2009/06/11 14:48:51 momjian Exp $
5
5
 */
6
6
#include "postgres.h"
7
7
 
16
16
 * check for boolean condition
17
17
 */
18
18
bool
19
 
ltree_execute(ITEM * curitem, void *checkval, bool calcnot, bool (*chkcond) (void *checkval, ITEM * val))
 
19
ltree_execute(ITEM *curitem, void *checkval, bool calcnot, bool (*chkcond) (void *checkval, ITEM *val))
20
20
{
21
21
        if (curitem->type == VAL)
22
22
                return (*chkcond) (checkval, curitem);
50
50
} CHKVAL;
51
51
 
52
52
static bool
53
 
checkcondition_str(void *checkval, ITEM * val)
 
53
checkcondition_str(void *checkval, ITEM *val)
54
54
{
55
55
        ltree_level *level = LTREE_FIRST(((CHKVAL *) checkval)->node);
56
56
        int                     tlen = ((CHKVAL *) checkval)->node->numlevel;