Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ywteu-0008Qy-JD for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 May 2015 14:47:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ywtet-0000eM-VD for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 May 2015 14:47:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ywtes-0000eF-RB for pgsql-jdbc@postgresql.org; Mon, 25 May 2015 14:47:14 +0000 Received: from rad0.itstriangle.com ([199.38.107.90]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Ywtek-0006wG-AX for pgsql-jdbc@postgresql.org; Mon, 25 May 2015 14:47:12 +0000 Received: from itstriangle.com (localhost [127.0.0.1]) by rad0.itstriangle.com (8.14.4/8.14.4) with ESMTP id t4PEl0io020970; Mon, 25 May 2015 10:47:01 -0400 Received: FROM [192.168.157.52] ([216.220.4.222]) BY itstriangle.com WITH ESMTP ; Mon, 25 May 2015 10:47:00 -0400 Message-ID: <55633883.5060900@ttc-cmc.net> Date: Mon, 25 May 2015 08:58:11 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 MIME-Version: 1.0 To: Mansour Al Akeel , PostgreSQL JDBC Subject: Re: Reading schema information References: <55632843.8060109@ttc-cmc.net> In-Reply-To: <55632843.8060109@ttc-cmc.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org dmp wrote: > Mansour Al Akeel wrote: >> Sorry for missing the email subject in my previous email ! >> >> I am trying to get some information about a coloum using the method: >> >> DatabaseMetaData.getString("IS_GENERATEDCOLUMN") >> >> However it is throwing an exception: >> >> org.postgresql.util.PSQLException: The column name IS_GENERATEDCOLUMN >> was not found in this ResultSet. >> >> Based on javadoc for getColumns method: >> >> http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String) >> >> >> >> We have: >> >> IS_GENERATEDCOLUMN String => Indicates whether this is a generated column >> >> YES --- if this a generated column >> NO --- if this not a generated column >> empty string --- if it cannot be determined whether this is a generated column >> >> >> My questions is, is this a bug ? if not, how can I obtain this >> information about a column (if it's generated or not) ? >> >> >> Thank you. >> Hello, I'm sorry, after testing, currently the given name IS_GENERATEDCOLUMN is given the error as you describe. The index of 23 can be used to obtain the results desired. Did you search the mailing list for a report or issue on this? danap. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc