X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ACCABDA127 for ; Wed, 5 Oct 2005 05:35:45 -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 36855-08 for ; Wed, 5 Oct 2005 08:35:41 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 57BE6DA15C for ; Wed, 5 Oct 2005 05:35:42 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id D88CC40BFF5; Wed, 5 Oct 2005 09:35:38 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 8DF0F15EDA; Wed, 5 Oct 2005 09:32:35 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11761-02; Wed, 5 Oct 2005 09:32:32 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id ECFEC15ED5; Wed, 5 Oct 2005 09:32:31 +0100 (BST) Message-ID: <43438F9F.9090207@archonet.com> Date: Wed, 05 Oct 2005 09:32:31 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050912) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cenk KIZILDAG Cc: pgsql-sql@postgresql.org Subject: Re: Getting user created tables from SQL References: <20051002133031.305.qmail@web40501.mail.yahoo.com> In-Reply-To: <20051002133031.305.qmail@web40501.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.058 required=5 tests=[AWL=0.008, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/30 X-Sequence-Number: 22883 Cenk KIZILDAG wrote: > TableQuery->SQL->Add ("SELECT TABLE_NAME AS TNAME FROM > INFORMATION_SCHEMA.TABLES WHERE (TABLE_TYPE = 'BASE TABLE')"); > CTableArr[f] = TableQuery->FieldByName ("TNAME")->AsString; > the first Select statement work correct, counttables variable gets > the right value but unfortunately, after the second select statement, > in C++ Builders SQL Explorer window, it brings the correct number of > rows but without datas in them!!! In Enterprise Manager the second > select statement also works correct but how come it aint work in C++ > builder? I don't suppose this could be an identifer case issue? In the first query TNAME will be case-folded to 'tname' (because that's how PG does case-insensitive identifiers). Try looking up FieldByName("tname") and see if that comes up with anything. -- Richard Huxton Archonet Ltd