Re: [ODBC] MyLog and CommLog options - Mailing list pgsql-odbc

From Daniil Megrabyan
Subject Re: [ODBC] MyLog and CommLog options
Date
Msg-id 7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.com
Whole thread Raw
In response to Re: [ODBC] MyLog and CommLog options  ("Inoue, Hiroshi" <h-inoue@dream.email.ne.jp>)
Responses Re: [ODBC] MyLog and CommLog options
List pgsql-odbc
> 4 февр. 2017 г., в 10:45, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
>
> Hmm, odbc.ini exists for datasource description whereas odbcinst.ini exists for driver description.
> How do you call ODBC, via DSN or DSNless?
I’m trying both. The latest attempt:

miniBagroff:odbc danilabagroff$ cat /usr/local/etc/odbc.ini
[pg_abra1]
Driver = PostgreSQL
Host = localhost
Port = 5432
Protocol = 6.4
FetchBufferSize = 99
Database = abra1
ReadOnly = no
MyLog = /tmp/mylog2.log

miniBagroff:odbc danilabagroff$ cat /usr/local/etc/odbcinst.ini
[ODBC]
Trace = Yes
TraceFile = /usr/local/var/log/odbc/trace.log

[ODBC Drivers]
PostgreSQL = Installed

[PostgreSQL]
Description = PostgreSQL ODBC Driver
Driver = /usr/local/lib/psqlodbcw.so
Setup  = /usr/local/lib/psqlodbcw.so
Protocol = 6.4
FetchBufferSize = 99
ReadOnly = no
MyLog = /tmp/mylog1.log

miniBagroff:odbc danilabagroff$ isql pg_abra1 abra cadabra -v
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> SELECT 1;
+------------+
| ?column?   |
+------------+
| 1          |
+------------+
SQLRowCount returns 1
1 rows fetched
SQL> quit

miniBagroff:odbc danilabagroff$ ls /tmp/mylog*
ls: /tmp/mylog*: No such file or directory


— Daniil A Megrabyan —



pgsql-odbc by date:

Previous
From: "Inoue, Hiroshi"
Date:
Subject: Re: [ODBC] MyLog and CommLog options
Next
From: "Inoue, Hiroshi"
Date:
Subject: Re: [ODBC] MyLog and CommLog options