pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg.campbell@us.michelin.com
To: Rohit Prakash Khare <rohitprakash123@indiatimes.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Error: relation does not exist
Date: Thu, 3 Aug 2006 13:23:01 -0400
Message-ID: <OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.com> (raw)
In-Reply-To: <200608031529.UAA02781@WS0005.indiatimes.com>


Are the statements you pass using correct case and delimiters.

PostgreSQL  will fold
"SELECT EMPLOYEES. NAME FROM EMPLOYEES"
into lower case e.g.
"SELECT employees.name FROM employees"
which produces the error if there is no "employees" table (the
table/relation is name EMPLOYEES or Employees).
The correction is to delimit the object names "SELECT 'EMPLOYEES'.'NAME'
FROM .'EMPLOYEES'". Notice the single quotes.
Of course most long time PostgreSQL users name all objects in lowercase to
avoid all the case folding/delimiting business.

Greg Campbell ENG-ASE/Michelin US5
Lexington, South Carolina
803-951-5561, x75561
Fax: 803-951-5531
greg.campbell@us.michelin.com



                                                                           
             "Rohit Prakash                                                
             Khare"                                                        
             <rohitprakash123@                                          To 
             indiatimes.com>           <pgsql-odbc@postgresql.org>         
             Sent by:                                                   cc 
             pgsql-odbc-owner@                                             
             postgresql.org                                        Subject 
                                       [ODBC] Error: relation does not     
                                       exist                               
             08/03/2006 12:38                                              
                                                                           
                                                                           
             Please respond to                                             
              "Rohit Prakash                                               
             Khare"<rohitpraka                                             
             sh123@indiatimes.                                             
                   com>                                                    
                                                                           
                                                                           




Whenever I create a New Table using GUI PGAdmin III, and then call the
table from VB.NET 2003 using ODBC Connection, it displays an error:
"Relation does not exist".

But when I create a Table from command line console of PGSQL, then I have
no problems. Everything works fine. What is the problem.

...
RPK

Sign Up for your FREE eWallet at www.wallet365.comSign Up for your FREE
eWallet at www.wallet365.com


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly

Attachments:

graycol.gif (image/gif, 105B) download view image
pic32304.gif (image/gif, 1.2K) download view image
ecblank.gif (image/gif, 45B) download view image

view thread (3+ messages)  latest in thread

Message-ID: <OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.com>
Permalink:  ../OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.com/
Also on:    postgresql.org/message-id/OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: greg.campbell@us.michelin.com, rohitprakash123@indiatimes.com
  Subject: Re: Error: relation does not exist
  In-Reply-To: <OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.com>
  References: <200608031529.UAA02781@WS0005.indiatimes.com> <OF4709AFD8.51611653-ON852571BF.005E9DA0-852571BF.005F7DDF@michelin.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