Re: [INTERFACES] Tables acting funny with pgaccess

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Tables acting funny with pgaccess
Дата
Msg-id 14012.920299248@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Tables acting funny with pgaccess  (Ben Gunter <bgunter@alef.gcsu.edu>)
Список pgsql-interfaces
bgunter@alef.gcsu.edu (Ben Gunter) writes:
> I'm having a problem with pgaccess that's confounding me.
> If I create a table with psql, I have no problems using pgaccess for
> queries.  However, if I create a table using pgaccess, things go awry.

>> PostgreSQL error message: ERROR: func_get_detail: No such attribute or function 'lastname'

> It's only if I ask for a specific
> field from a table created by pgaccess.

At a guess, pgaccess is generating the table with case of field names
preserved?  Ordinarily, table and field names are implicitly downcased,
but not if you put double quotes around 'em.

My bet is that pgaccess is quoting your field names during CREATE TABLE
but not doing so during SELECT ... a bad combination.

            regards, tom lane

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: teo@flex.ro (Constantin Teodorescu)
Дата:
Сообщение: Re: [INTERFACES] Tables acting funny with pgaccess
Следующее
От: "Ben Gunter"
Дата:
Сообщение: Re: [INTERFACES] Tables acting funny with pgaccess