From: Katherine Goodwin <kat@clocksoft.com>
To: pgsql-odbc@postgresql.org
Subject: Problem with unixODBC
Date: Mon, 29 Mar 2004 13:11:48 +0100
Message-ID: <40681284.10100@clocksoft.com> (raw)
Dear all,
I'm trying to get the ODBC driver working with Postgres so I can use the
OpenOffice data sources facilities.
I've managed to get ODBC working so that I can connect to a database but
I am unable to see any tables.
The following happens...
[etc@pike]$ isql test
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> help
[ISQL]ERROR: Could not SQLTables
SQL>
However, if I connect using psql using the same credentials, I can see
the tables fine.
I'm assuming this is an access control / permissions type issue, but am
not sure how to fix it.
Any suggestions gratefully received.
My config files are as follows:
odbc.ini:
-------------------------------------
[ODBC Data Sources]
test = PostgreSQL
[test]
Description = postgres
Driver = /usr/lib/libodbcpsql.so.1
Database = jobs
Trace = No
TraceFile = /tmp/odbc.log
Servername = localhost
UserName = kat
Password = xxxx
Port = 5432
-------------------------------------
odbcinst.ini:
-------------------------------------
# Example driver definitinions
#
#
[ODBC Drivers]
PostgreSQL = Installed
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
# From the MyODBC package
#[MySQL]
#Description = ODBC for MySQL
#Driver = /usr/lib/libmyodbc.so
#FileUsage = 1
-------------------------------------
Many thanks in advance,
Kat
--
Katherine Goodwin
Clockwork Software Systems
intY has scanned this email for all known viruses (www.inty.com)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: kat@clocksoft.com
Subject: Re: Problem with unixODBC
In-Reply-To: <40681284.10100@clocksoft.com>
References: <40681284.10100@clocksoft.com>
* 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