X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B3A30D1B1EC for ; Tue, 29 Jun 2004 10:10:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49416-02 for ; Tue, 29 Jun 2004 13:10:22 +0000 (GMT) Received: from mxout2.iskon.hr (mxout2.iskon.hr [213.191.128.16]) by svr1.postgresql.org (Postfix) with SMTP id 517ECD1B1D0 for ; Tue, 29 Jun 2004 10:10:16 -0300 (ADT) Received: (qmail 27096 invoked from network); 29 Jun 2004 15:10:19 +0200 X-Remote-IP: 213.191.128.12 Received: from mx.iskon.hr (qmailr@213.191.128.12) by mxout2.iskon.hr with SMTP; 29 Jun 2004 15:10:19 +0200 Received: (qmail 10029 invoked from network); 29 Jun 2004 15:10:18 +0200 X-Remote-IP: 213.191.150.117 Received: from zg07-116.dialin.iskon.hr (HELO lisa.finteh.hr) (213.191.150.117) by mx.iskon.hr with SMTP; 29 Jun 2004 15:10:18 +0200 From: Darko Prenosil To: Carlos Ojea Castro , pgsql-interfaces@postgresql.org Subject: Re: : query using kylix (delphi) Date: Tue, 29 Jun 2004 15:09:47 +0200 User-Agent: KMail/1.5 References: <40D84E00.2050602@leveltelecom.es> <40E14C80.4040209@leveltelecom.es> In-Reply-To: <40E14C80.4040209@leveltelecom.es> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200406291509.48031.darko.prenosil@finteh.hr> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/63 X-Sequence-Number: 4991 On Tuesday 29 June 2004 13:03, Carlos Ojea Castro wrote: > Hello: > > I am trying to access a postgresql database using kylix (delhi). > I made a SQLConnection object and I got it active. > Then I made a SQLQuery object, but when I try to make it active, i get a > 'access violation' message. > This is not right list to ask questions about Kylix, however you probably have no access permissions to get the data (SELECT permission on targer table). Check the permissions for the table you are accessing. For example if You want to check SELECT permission for pg_catalog.pg_index table, You can do that using: SELECT has_table_privilege('pg_catalog.pg_index', 'SELECT') or INSERT permission: SELECT has_table_privilege('pg_catalog.pg_index', 'INSERT') etc... If you have no privileges You can change it using : GRANT SELECT ON TABLE pg_catalog.pg_index TO public; GRANT INSERT ON TABLE pg_catalog.pg_index TO public; or: GRANT INSERT ON TABLE pg_catalog.pg_index TO some_other_group; or: GRANT INSERT ON TABLE pg_catalog.pg_index TO some_other_user; etc... You might also want to check server log for exact error message and explanation. Regards !