Обсуждение: Connecting settings in PsqlODBC

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

Connecting settings in PsqlODBC

От
wojtek
Дата:
Hello,

I use PostgreSQL ODBC driver. This is 6.30.0246 version of
that product.

One of the advanced options of the driver (in section 'Connection') is
field
called as 'Connecting settings'. It gives the ability to run SQL
commands
at the momment of connecting. They say, that if someone wants to run a
few commands, they should be separated by a semi-colon (;). My problem
is that it doesn't work on my computer! Does anyone have any suggestions

where the problem is?

I have no problem with running one command. When I put a few of
them, only the first one is run. I use ODBC on Pentium133 to connect
resources
of PostgreSQL database with Access97.

Thanks in advance

Wojtek Pietron


Re: [INTERFACES] Connecting settings in PsqlODBC

От
Byron Nikolaidis
Дата:
wojtek wrote:
>
> Hello,
>
> I use PostgreSQL ODBC driver. This is 6.30.0246 version of
> that product.
>
> One of the advanced options of the driver (in section 'Connection') is
> field
> called as 'Connecting settings'. It gives the ability to run SQL
> commands
> at the momment of connecting. They say, that if someone wants to run a
> few commands, they should be separated by a semi-colon (;). My problem
> is that it doesn't work on my computer! Does anyone have any suggestions
>
> where the problem is?
>

I was able to run multiple commands.  Of course, only the first one
actually "responds" with anything, but the other commands were indeed
run.

BTW, what commands were you running?

Byron

Re: [INTERFACES] Connecting settings in PsqlODBC

От
Byron Nikolaidis
Дата:
wojtek wrote:
>
> Hello,
>
> I use PostgreSQL ODBC driver. This is 6.30.0246 version of
> that product.
>
> One of the advanced options of the driver (in section 'Connection') is
> field
> called as 'Connecting settings'. It gives the ability to run SQL
> commands
> at the momment of connecting. They say, that if someone wants to run a
> few commands, they should be separated by a semi-colon (;). My problem
> is that it doesn't work on my computer! Does anyone have any suggestions
>
> where the problem is?

Sorry, you were right.  Only the first command is getting run *after*
the first connect.  The reason is that the semicolans in the connect
settings is interfering with the semicolans used to separate the
SQLDriverConnect string.

I will fix it in the next release.

Byron