pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Cenk KIZILDAG <cenk1536@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Getting user created tables from SQL
Date: Wed, 05 Oct 2005 09:32:31 +0100
Message-ID: <43438F9F.9090207@archonet.com> (raw)
In-Reply-To: <20051002133031.305.qmail@web40501.mail.yahoo.com>
References: <20051002133031.305.qmail@web40501.mail.yahoo.com>

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



view thread (2+ messages)

Message-ID: <43438F9F.9090207@archonet.com>
Permalink:  ../43438F9F.9090207@archonet.com/
Also on:    postgresql.org/message-id/43438F9F.9090207@archonet.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, cenk1536@yahoo.com
  Subject: Re: Getting user created tables from SQL
  In-Reply-To: <43438F9F.9090207@archonet.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