Re: PHP Query Issues on Ingres R3 Linux Version
- From: John Dennis <denjo02@xxxxxxxxxxx>
- Date: Wed, 10 Sep 2008 15:25:50 -0700 (PDT)
On Sep 11, 4:46 am, w1ndy <mattw...@xxxxxxxxx> wrote:
On Sep 10, 10:32 am, Grant Croker <grant.cro...@xxxxxxxxxx> wrote:
I guess you will find the answer more interesting...
demodb is owned by "ingres", the table was created by "userx" where that
is the username you executed the create table as. Since "userx" does not
own the database, your web/phppage needs to reference the table using
the schema prefix "userx", in effect "userx.page". See the highlighted
line inhttp://ingres.pastebin.com/d407bd1c1forwhat I mean.
regards
grant
On/El 10/09/08 18:53, w1ndy wrote/escribió:> Interesting... as you can see from my original post I did create a
table called "page", the error says the following...
Queryfailed with 2117 - Table 'page' does not exist or is not owned
by you.
--
Grant Croker - IngresPHP, Ruby and Python maintainer
The door was the way to... to... The Door was The Way. Good. Capital
letters were always the best way of dealing with things you didn't have
a good answer to.
Thanks Grant, that worked!!
It's nice to finally see some data =)
Yea you are right that is interesting, is it possible to set the table
permission to public, or do you always have to use "userx.table" ??
m@
If a table is owned by the DBA (the database owner) then there is no
need to proefix it by the owner (or schema) name. It's not a
"permission" thing so much as an object ownership issue.
An object which is not prefixed by a schema name is found by looking
for that object ownerd by the current user, and then owned by the DBA
(all subject to permission to use tha object). If such an object does
not exist after looking with those two owners, then it is considered
to not exist.
John
.
- References:
- PHP Query Issues on Ingres R3 Linux Version
- From: w1ndy
- Re: [Info-Ingres] PHP Query Issues on Ingres R3 Linux Version
- From: Grant Croker
- Re: PHP Query Issues on Ingres R3 Linux Version
- From: w1ndy
- Re: [Info-Ingres] PHP Query Issues on Ingres R3 Linux Version
- From: Grant Croker
- Re: PHP Query Issues on Ingres R3 Linux Version
- From: w1ndy
- PHP Query Issues on Ingres R3 Linux Version
- Prev by Date: [Info-Ingres] Ingres DBA Recruitment
- Next by Date: Re: JBOSS 4 JDBC access to Ingres databases
- Previous by thread: Re: PHP Query Issues on Ingres R3 Linux Version
- Next by thread: [Info-Ingres] Ingres DBA Recruitment
- Index(es):
Relevant Pages
|