473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Column qualifier issue

As far as I can tell, there isn't a way to get postgresql to accept column
qualifiers (e.g. tablenames). A 'parse error at or near "."' gets returned.

I'm using a closed source application that has successfully handled a number
of other sql92 compatible datasources via odbc. The problem is the app
insists on qualifying column names all the time, even in Insert and Update
statements. That is not incorrect according to sql92, even though one could
assume that a qualifier is never required with update and insert.

Is it possible to get Postgres to accept these statements? Anyone have a hack
to let this stuff through the parser?

Tia,

Jim
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #1
2 1634
"Jim Wilson" <ji**@kelcomaine.com> writes:
As far as I can tell, there isn't a way to get postgresql to accept column
qualifiers (e.g. tablenames). A 'parse error at or near "."' gets returned.


You're either very confused or using a *very* old version of Postgres.

What version is it, what query are you issuing exactly, and what exactly
is the error message? (Cut-and-paste from a psql session would be the
best way to answer the last two ... or if the query is being issued from
another application, you could turn on query logging and send in an
excerpt from the postmaster log.)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #2
On Mon, 12 Jan 2004, Tom Lane wrote:
"Jim Wilson" <ji**@kelcomaine.com> writes:
As far as I can tell, there isn't a way to get postgresql to accept column
qualifiers (e.g. tablenames). A 'parse error at or near "."' gets returned.


You're either very confused or using a *very* old version of Postgres.

What version is it, what query are you issuing exactly, and what exactly
is the error message? (Cut-and-paste from a psql session would be the
best way to answer the last two ... or if the query is being issued from
another application, you could turn on query logging and send in an
excerpt from the postmaster log.)


My guess from the rest of his message is something like:

sszabo=# insert into a (a.x) values ('3');
ERROR: syntax error at or near "." at character 17

(from my 7.5 machine).

However, AFAICS in sql92 the above isn't valid, because a.x doesn't meet
the syntactic requirements for elements in the column name list.
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mahesh Tomar | last post by:
Dear Readers, I am porting my existing C code to C++. In my existing code there are numerous functions that has been defined with CONST qualifier. For eg. foo(const DATA_TYPE *x); DATA_TYPE is...
2
by: Thomas R. Hummel | last post by:
Hello, I'm not getting any response to this on the SQLDTS newsgroup, so I thought that I would try here: I just ran into this problem and I can't find any other mention of it through Google....
2
by: kc68 | last post by:
I'm trying to import a csv spreadsheet into Access and find that the data in some cells in a few rows gets pushed to columns to the right. When I reach the point in the Wizard that shows the column...
4
by: =?utf-8?b?QXNiasO4cm4gU8OmYsO4?= | last post by:
Suppose I have a function that takes a pointer as its input, but does not change what the pointer points to. In that case, the const qualifier can be used to indicate that the variable pointed to...
2
by: kjewell23 | last post by:
I'm getting this error column qualifier or table undefined in asp.net Dim connectionstring As String connectionstring = "DRIVER=Client Access ODBC Driver...
5
by: Anne | last post by:
Hello! Here is the statement in question: --STATEMENT A SELECT * FROM dbo.myTable WHERE colX in (SELECT colX FROM dbo.sourceTable) The problem with Statement A is that 'colX' does not exist...
4
by: Ben Petering | last post by:
Hi group, this is a 'best practice' type question (I want discussion of the issue - whys and why nots - similar to "casting the return value of malloc()", to cite an analogous case). Let's...
2
by: venkat | last post by:
Hi, i came across restrict qualifier while looking the code. I haven't able to understand what does this do?. Can some one help me how does this makes the things restrict to an specified...
7
by: lenygold via DBMonster.com | last post by:
I have a table FAMILY folowing columns: SSN,NAME,DOB,AGE,PL_BIRTH,MARITAL_STAT I would like to add a column GENDER between columns NAME and DOB. Is posiible wihout Droping table FAMILY? ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.