pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: michael.28.smith@bt.com
Cc: pgsql-odbc@postgresql.org
Cc: stephen.hindmarch@bt.com
Subject: Re: Issues when using schema names with odbc
Date: Sat, 20 Nov 2010 11:33:01 +0900
Message-ID: <4CE7335D.7080407@tpf.co.jp> (raw)
In-Reply-To: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net>
References: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net>

(2010/11/19 1:22), michael.28.smith@bt.com wrote:
> I think there is an issue with the following version of postgresql-odbc
> where I am unable to use schema names.
>
> Using “isql ” “help table_name” returns information about the column
> names but “help schema.table_name returns nothing.

ODBC doesn't handle schema_name.table_name type format.
For example the syntax of SQLColumns() is as follows.

	SQLRETURN SQLColumns(
		SQLHSTMT       StatementHandle,
		SQLCHAR *      CatalogName,
		SQLSMALLINT    NameLength1,
		SQLCHAR *      SchemaName,
		SQLSMALLINT    NameLength2,
		SQLCHAR *      TableName,
		SQLSMALLINT    NameLength3,
		SQLCHAR *      ColumnName,
		SQLSMALLINT    NameLength4);

regards,
Hiroshi Inoue

> This assumes the identical tables are in public.table_name and
> schema.table_name
>
> I actually come across this when using asterisk realtime – I was about
> to raise this as an asterisk issue and came across this – which suggests
> it is actually an underlying odbc issue.
>
> https://issues.asterisk.org/view.php?id=15963
>
> Has this been seen before..?
>
> Many Thanks
>
> Mike
>
> rpm -qa |grep odbc
>
> postgresql-odbc-08.01.0200-3.1
>
> rpm -qa |grep postgres
>
> postgresql-server-8.1.11-1.el5_1.1
>
> postgresql-libs-8.1.11-1.el5_1.1
>
> postgresql-8.1.11-1.el5_1.1
>
> postgresql-libs-8.1.11-1.el5_1.1
>
> postgresql-odbc-08.01.0200-3.1
>
> Asterisk 1.6.2.12



view thread (6+ messages)  latest in thread

Message-ID: <4CE7335D.7080407@tpf.co.jp>
Permalink:  ../4CE7335D.7080407@tpf.co.jp/
Also on:    postgresql.org/message-id/4CE7335D.7080407@tpf.co.jp

 · 

reply

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: inoue@tpf.co.jp, michael.28.smith@bt.com, stephen.hindmarch@bt.com
  Subject: Re: Issues when using schema names with odbc
  In-Reply-To: <4CE7335D.7080407@tpf.co.jp>
  References: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net> <4CE7335D.7080407@tpf.co.jp>

* 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