Обсуждение: server --configure postgresql

Поиск
Список
Период
Сортировка

server --configure postgresql

От
yanling xu
Дата:
Hello Sir,

Does your odbc driver support postgres7.0.3?
WE use postgre7.0.3 on linux.
Could you help me  to set uo a sysDSN:

DATA SOURCE: hostname
database: database name,
server: ?
username: linux user
password: password,

I am not sure what server is.

Any advice will be appreciated.

Regards,

Helen.

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

Re: server --configure postgresql

От
Dave Page
Дата:

> -----Original Message-----
> From: yanling xu [mailto:helenxyl@yahoo.com]
> Sent: 13 November 2001 00:38
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] server --configure postgresql
>
>
> Hello Sir,
>
> Does your odbc driver support postgres7.0.3?

Yes.

> WE use postgre7.0.3 on linux.
> Could you help me  to set uo a sysDSN:
>
> DATA SOURCE: hostname

Actually, datasource can be any name you like. This is just an identifier
for the DSN.

> database: database name,
> server: ?

server: hostname or IP address of the linux/postgresql server

> username: linux user

Only if you chosen authentication scheme is using the linux password
database (this is configured in $PGDATA/pg_hba.conf on the linux machine).

> password: password,
>

Hth, regards, Dave.

SQLDescribeCol and column alias

От
Gilles DAROLD
Дата:
Hi all,

It seems to me that SQLDescribeCol return the realname of a column.
For example when I run a query like that:

    SELECT mycol AS othername FROM mytable;

it returns 'mycol' and not 'othername'. Am I wrong or is there's an
other way to have the alias returned ?

Regards

Gilles Darold


Re: SQLDescribeCol and column alias

От
Hiroshi Inoue
Дата:
Gilles DAROLD wrote:
>
> Hi all,
>
> It seems to me that SQLDescribeCol return the realname of a column.
> For example when I run a query like that:
>
>     SELECT mycol AS othername FROM mytable;
>
> it returns 'mycol' and not 'othername'. Am I wrong or is there's an
> other way to have the alias returned ?

Aren't you turning on Parse Statement option ?
Porbably you can get the alias name by turning off the option.
Anyway I would fix it soon.
The fix would be included in the next release.

Thanks for the report.
Hiroshi Inoue

Turning off Parse Statement

От
Gilles DAROLD
Дата:
Thanks,

Don't know how to turning off Parse Statement, I'd set a Parse option to
'no'
in the odbc.ini file but it does nothing. I've seen many thing related
to Advanced
Driver Options with a MS-Windows Interface but unfortunally I don't use
this
kind of box and can't find any documentation on how to defined these
options
by hand. Any idea ?

Regards,

Hiroshi Inoue wrote:

> Gilles DAROLD wrote:
> >
> > Hi all,
> >
> > It seems to me that SQLDescribeCol return the realname of a column.
> > For example when I run a query like that:
> >
> >     SELECT mycol AS othername FROM mytable;
> >
> > it returns 'mycol' and not 'othername'. Am I wrong or is there's an
> > other way to have the alias returned ?
>
> Aren't you turning on Parse Statement option ?
> Porbably you can get the alias name by turning off the option.
> Anyway I would fix it soon.
> The fix would be included in the next release.
>
> Thanks for the report.
> Hiroshi Inoue


Re: Turning off Parse Statement

От
Hiroshi Inoue
Дата:
Gilles DAROLD wrote:
>
> Thanks,
>
> Don't know how to turning off Parse Statement, I'd set a Parse option to
> 'no'
> in the odbc.ini file but it does nothing. I've seen many thing related
> to Advanced
> Driver Options with a MS-Windows Interface but unfortunally I don't use
> this
> kind of box and can't find any documentation on how to defined these
> options
> by hand. Any idea ?

Oops I remember you are using libpsqqlodbc on a Linux.
Hmm the ParseStatement option is off by default.
Don't you have odbcinst.ini file somewhere ?

regards,
Hiroshi Inoue

Re: Turning off Parse Statement

От
Gilles DAROLD
Дата:
Very good memory :-) Then if ParseStatement option is off by default
(I have nothing related to this in my odbcinst.ini) and even if I set this
option to off in the odbcinst.ini it doesn't work, I already have the
realname
of the column.

But no matter, I have found a workaround until the next version of
libpsqlodbc.
You certainly also remember that I was working on OpenLDAP/PostgreSQL
so the workaround it's just an other patch to openLDAP that may also help
with
some other ODBC database driver...

Regards

Gilles DAROLD

Hiroshi Inoue wrote:

> Gilles DAROLD wrote:
> >
> > Thanks,
> >
> > Don't know how to turning off Parse Statement, I'd set a Parse option to
> > 'no'
> > in the odbc.ini file but it does nothing. I've seen many thing related
> > to Advanced
> > Driver Options with a MS-Windows Interface but unfortunally I don't use
> > this
> > kind of box and can't find any documentation on how to defined these
> > options
> > by hand. Any idea ?
>
> Oops I remember you are using libpsqqlodbc on a Linux.
> Hmm the ParseStatement option is off by default.
> Don't you have odbcinst.ini file somewhere ?
>
> regards,
> Hiroshi Inoue
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: 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