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: Tue, 30 Nov 2010 23:17:30 +0900
Message-ID: <4CF5077A.2050906@tpf.co.jp> (raw)
In-Reply-To: <806CB309AA19EE4F8F30EB5DF3E372B33B5E635C22@EMV61-UKRD.domain1.systemhost.net>
References: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net>
	<4CE7335D.7080407@tpf.co.jp>
	<806CB309AA19EE4F8F30EB5DF3E372B33B5E635C22@EMV61-UKRD.domain1.systemhost.net>

(2010/11/29 23:51), michael.28.smith@bt.com wrote:
> Used a little test app to verify this and I get different results,
>
> Assuming create schema test_schema;
>
> create table public.test(
> 	row1 int,
> 	row2 text);
>
> create table test_schema.test(
> 	row_t_1 int,
> 	row_t_2 text);
>
> grant usage on schema test_schema to public;
> grant select on public.test to public;
> grant select on test_schema.test to public;
>
> insert into public.test values (1,'public schema');
> insert into test_schema.test values (2,'test schema');
>
> The test app shows the following results....:
>
> [root@winston scripts]# ./sqltest
> SQLColumns Connection Test
> Handles Allocated
>
> Getting columns from test_schema.test
> No data!
>
> Getting all rows from test_schema.test
> Row 0:1=2;2=test schema;
>
> Getting columns from public.test
> No data!
>
> Getting all rows from public.test
> Row 0:1=1;2=public schema;
>
> Getting columns from (null).test
> Column 0: row
> Column 1: row
> Column 2: row
> Column 3: row
>
> Getting all rows from (null).test
> Row 0:1=1;2=public schema;

Which version of psqlodbc driver are you using?
Here I get the following results.

Getting columns from test_schema.test
Column 0: row_t_1
Column 1: row_t_2

Getting all rows from test_schema.test
Row 0:1=2;2=test schema;

Getting columns from public.test
Column 0: row1
Column 1: row2

Getting all rows from public.test
Row 0:1=1;2=public schema;

Getting columns from (null).test
Column 0: row1
Column 1: row2

Getting all rows from (null).test
Row 0:1=1;2=public schema;

regards,
Hiroshi Inoue




view thread (6+ messages)  latest in thread

Message-ID: <4CF5077A.2050906@tpf.co.jp>
Permalink:  ../4CF5077A.2050906@tpf.co.jp/
Also on:    postgresql.org/message-id/4CF5077A.2050906@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: <4CF5077A.2050906@tpf.co.jp>
  References: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net> <4CE7335D.7080407@tpf.co.jp> <806CB309AA19EE4F8F30EB5DF3E372B33B5E635C22@EMV61-UKRD.domain1.systemhost.net> <4CF5077A.2050906@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