Error of text2ltree

Started by Vu Hong Thuanalmost 16 years ago2 messagesgeneral
Jump to latest
#1Vu Hong Thuan
thuanvh@gmail.com

I can't use text2ltree. Any suggestion? Thanks.

SELECT text2ltree('abc'). It's okay. But, got error if:

SELECT text2ltree(to_char(243, '09999999'))

******** Error ******

ERROR: syntax error at position 0 SQL state: 42601

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Vu Hong Thuan (#1)
Re: Error of text2ltree

Vu Hong Thuan <thuanvh@gmail.com> writes:

I can't use text2ltree. Any suggestion? Thanks.
SELECT text2ltree('abc'). It's okay. But, got error if:

SELECT text2ltree(to_char(243, '09999999'))

******** Error ******

ERROR: syntax error at position 0 SQL state: 42601

I think ltree doesn't allow spaces in the input.

regards, tom lane