ltree and PHP

Поиск
Список
Период
Сортировка
От Open _
Тема ltree and PHP
Дата
Msg-id 1170495024.1919421.1612500273286@mail.yahoo.com
обсуждение исходный текст
Ответы Re: ltree and PHP
Список pgsql-general
I've created the ltree extension
created a table with an ltree column called ltree_path

In php I can access the table, insert, update, delete.
but ltree operators don't work.

select count() from schema.table 
where 'A.B.C' @> ltree_path;

gives me a "could not determine polymorphic type anyrange because input has type unknown'

The same statement works just fine in psql, but not in PHP

If I change the statement to:

select count() from schema.table 
where cast('A.B.C' as schema.ltree) @> ltree_path;

I get a different error: "operator does not exist:"
pointing to the @>

Is there someplace to 'create' or include ltree in PHP ?


В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Unable To Drop Tablespace
Следующее
От: Jagmohan Kaintura
Дата:
Сообщение: updating(column) Porting from Oracle Trigger to PostgreSQL trigger