From: Open _ <opensheart@yahoo.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: ltree and PHP
Date: Fri, 5 Feb 2021 04:44:33 +0000 (UTC)
Message-ID: <1170495024.1919421.1612500273286@mail.yahoo.com> (raw)
References: <1170495024.1919421.1612500273286.ref@mail.yahoo.com>
I've created the ltree extensioncreated 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 ?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: opensheart@yahoo.com
Subject: Re: ltree and PHP
In-Reply-To: <1170495024.1919421.1612500273286@mail.yahoo.com>
References: <1170495024.1919421.1612500273286.ref@mail.yahoo.com> <1170495024.1919421.1612500273286@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox