Skip site navigation (1) Skip section navigation (2)

Re: Issues when using schema names with odbc

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: michael(dot)28(dot)smith(at)bt(dot)com
Cc: pgsql-odbc(at)postgresql(dot)org, stephen(dot)hindmarch(at)bt(dot)com
Subject: Re: Issues when using schema names with odbc
Date: 2010-11-30 14:17:30
Message-ID: 4CF5077A.2050906@tpf.co.jp (view raw or flat)
Thread:
Lists: pgsql-odbc
(2010/11/29 23:51), michael(dot)28(dot)smith(at)bt(dot)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(at)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


In response to

Responses

pgsql-odbc by date

Next:From: michael.28.smithDate: 2010-11-30 14:38:44
Subject: Re: Issues when using schema names with odbc
Previous:From: michael.28.smithDate: 2010-11-29 15:03:19
Subject: Re: Issues when using schema names with odbc

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group