From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Richard <postgres@joelrichard.com>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: Converting from MS Access field aliases
Date: Thu, 12 Jul 2007 13:48:40 -0400
Message-ID: <1570.1184262520@sss.pgh.pa.us> (raw)
In-Reply-To: <C4D5DABE-81DC-4926-A096-0EA33B44B793@joelrichard.com>
References: <746273.93291.qm@web54305.mail.re2.yahoo.com>
<634.1184260980@sss.pgh.pa.us>
<C4D5DABE-81DC-4926-A096-0EA33B44B793@joelrichard.com>
Joel Richard <postgres@joelrichard.com> writes:
> What's really screwy is what I found when I hooked access into my
> PostgreSQL database using pgsqlODBC (I know, it's an abomination) and
> I logged the statements that PostgreSQL was processing. In MS Access
> this query:
> SELECT foo AS bar, bar * 2 AS gleep FROM table;
> became this in PostgreSQL's logs
> SELECT foo FROM table;
> Vewwy Intewesting!
Yeah, that *is* interesting --- it means Access is trying to do all the
arithmetic for itself. I guess this means that you could keep using
the statements unchanged if you wanted to use Access as a frontend to
Postgres. Of course you're trying to get away from that, but this
might at least give you a chance of fixing things incrementally instead
of having to fix everything all at once.
regards, tom lane
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: tgl@sss.pgh.pa.us, postgres@joelrichard.com
Subject: Re: Converting from MS Access field aliases
In-Reply-To: <1570.1184262520@sss.pgh.pa.us>
* 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