pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Lambert <paul.lambert@autoledgers.com.au>
To: pgsql-odbc@postgresql.org
Subject: Re: ODBC driver adding extra characters to table names.
Date: Fri, 10 Aug 2007 06:12:21 +0800
Message-ID: <46BB9145.6080609@autoledgers.com.au> (raw)
In-Reply-To: <043801c7da5b$af216930$c601a8c0@HP22720319231>
References: <46BA42E5.30407@autoledgers.com.au>
	<11903.1186624913@sss.pgh.pa.us>
	<46BA7FF4.4040006@autoledgers.com.au>
	<27042.1186630362@sss.pgh.pa.us>
	<46BABAE4.5070406@autoledgers.com.au>
	<043801c7da5b$af216930$c601a8c0@HP22720319231>

Hiroshi Saito wrote:
> Hi.
> 
> Sorry, very late reaction...
> 
> Um, I tried it on ACCESS2000.(08.02.0402)
> This is the table which stretched the link. 
> http://www.skcapi.co.jp/~saito/psqlODBC_TEST/psqlODBC_link1.PNG
> Query which you say was imitated.?
> http://www.skcapi.co.jp/~saito/psqlODBC_TEST/psqlODBC_link2.PNG
> It is tested. 
> http://www.skcapi.co.jp/~saito/psqlODBC_TEST/psqlODBC_link3.PNG
> 
> Your problem is not reproduced....I may have missed something.
> If possible, please let me know reproducible environment.
> 
> Thanks!
> 
> Regards,
> Hiroshi Saito
> 
> 

It's happening on all of my client sites that I've turned 
standard_conforming_strings ON in postgresql.conf.

Table definition as follows:
create table billing_code (
	dealer_id text  not null ,
	date_changed timestamp null ,
	time_changed time null ,
	billing_code_id text  not null ,
	des text ,
	billing_code_type text ,
	labour_rate numeric(19,4) null ,
	labour_sales_group smallint null ,
	customer_no int null ,
	parts_sales_group smallint null ,
	comeback text ,
         workshop text  not null,
         franchise text  not null,
         location text  not null,
         deleteflag text
) WITHOUT OIDS TABLESPACE ts_autodrs_main
;
GRANT ALL PRIVILEGES ON billing_code TO "AutoDRS";
alter table billing_code  add
	constraint pk_billing_code primary key
	(
		billing_code_id,
		dealer_id,
                 franchise,
                 workshop,
                 location
	)
;

Steps to reproduce:
0) Make sure standard_conforming_strings is turned ON and pg has been 
restarted.
1) Open up MS Access (2000 and 2003 both give me the problem)
2) Go to tables section, right click and select link table.
3) Find your ODBC data source.
4) Select public.billing_code from the list of tables.
5) Error is presented at that stage (don't even get to the point of 
writting a select query)

I can attach the full mylog if you so wish - I haven't put it on yet 
because the log created from just that one query is around 800K so I'm 
leaving it off unless it's specifically requested.

-- 
Paul Lambert
Database Administrator
AutoLedgers



view thread (9+ messages)  latest in thread

Message-ID: <46BB9145.6080609@autoledgers.com.au>
Permalink:  ../46BB9145.6080609@autoledgers.com.au/
Also on:    postgresql.org/message-id/46BB9145.6080609@autoledgers.com.au

 · 

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: paul.lambert@autoledgers.com.au
  Subject: Re: ODBC driver adding extra characters to table names.
  In-Reply-To: <46BB9145.6080609@autoledgers.com.au>
  References: <46BA42E5.30407@autoledgers.com.au> <11903.1186624913@sss.pgh.pa.us> <46BA7FF4.4040006@autoledgers.com.au> <27042.1186630362@sss.pgh.pa.us> <46BABAE4.5070406@autoledgers.com.au> <043801c7da5b$af216930$c601a8c0@HP22720319231> <46BB9145.6080609@autoledgers.com.au>

* 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