ltree valid characters - Mailing list pgsql-general

From Net Virtual Mailing Lists
Subject ltree valid characters
Date
Msg-id 20050106192626.4450@mail.net-virtual.com
Whole thread Raw
List pgsql-general
Hello,

I'm using ltree but I have a requirement to use the "-" character in the
text of a node.  Can I just change (in ltree.h) the following line:

#define ISALNUM(x)      ( isalnum((unsigned char)(x)) || (x) == '_')

to:

#define ISALNUM(x)      ( isalnum((unsigned char)(x)) || (x) == '_' ||
(x) == '-')


.. or will there be hidden consequences of this?...


Thanks!

- Greg


pgsql-general by date:

Previous
From: "Joost Kraaijeveld"
Date:
Subject: Re: Query, view join question.
Next
From: vhikida@inreach.com
Date:
Subject: Re: Query, view join question.