X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D15618BA0CB for ; Fri, 11 Feb 2005 10:02:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70643-10 for ; Fri, 11 Feb 2005 10:01:58 +0000 (GMT) Received: from mail23.nhs.uk (mail23.nhs.uk [62.6.139.221]) by svr1.postgresql.org (Postfix) with ESMTP id CBE698BA027 for ; Fri, 11 Feb 2005 10:01:58 +0000 (GMT) Received: from [10.191.254.3] (helo=relayint2.nhs.uk) by mail23.nhs.uk with esmtp (MTC MTA) id 1CzXcZ-0004PJ-CN for pgsql-odbc@postgresql.org; Fri, 11 Feb 2005 10:01:55 +0000 Received: from relay.nhs.uk (194.62.42.141) by relayint2.nhs.uk (Syntegra-I2 7.0.008) id 41C955B300D70D30 for pgsql-odbc@postgresql.org; Fri, 11 Feb 2005 10:01:55 +0000 Received: from smtp1.tayside.scot.nhs.uk (10.252.0.22) by relay.nhs.uk (Syntegra-1 7.0.008) (authenticated as smtp1_tayside_scot_nhs_uk@es2002.nhs.uk) id 420C6A5A0001E578; Fri, 11 Feb 2005 10:01:55 +0000 Received: from smtp1.tayside.scot.nhs.uk (localhost [127.0.0.1]) by localhost.tayside.scot.nhs.uk (Postfix) with ESMTP id 864631B39; Fri, 11 Feb 2005 10:01:54 +0000 (GMT) Received: from gonzalo.tuht.scot.nhs.uk (gonzalo.tuht.scot.nhs.uk [10.252.32.96]) by smtp1.tayside.scot.nhs.uk (Postfix) with ESMTP id 6A77B1B37; Fri, 11 Feb 2005 10:01:54 +0000 (GMT) Received: from [192.168.1.46] (localhost [127.0.0.1]) by gonzalo.tuht.scot.nhs.uk (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IBQ006SLRV5SO@gonzalo.tuht.scot.nhs.uk>; Fri, 11 Feb 2005 10:01:54 +0000 (GMT) Date: Fri, 11 Feb 2005 10:01:54 +0000 From: Paul Cochrane Subject: Re: Compiling using Visual Studio 2003 In-reply-to: <420C0AA7.4040501@bigpond.net.au> To: David Brown , pgsql-odbc@postgresql.org Message-id: <420C8292.5040602@tuht.scot.nhs.uk> Organization: TORT Centre MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) References: <420B4E27.6000502@tuht.scot.nhs.uk> <420C0AA7.4040501@bigpond.net.au> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.28 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200502/60 X-Sequence-Number: 4950 David Brown wrote: > Paul Cochrane wrote: > >> I asked years ago agout this. Google for "psqlodbc bde schema" and >> it's the first match. Basically when using a schema enabled postgres >> the table names are returned as 'public.tablename' instead of plain >> 'tablename'. This screws up the applications as it upsets all the >> data models for the forms. The application needs to work with both >> the paradox table version and postgres so I need a way of hiding the >> "public." returned to paradox. I've managed to do this by adding >> another compile option "HIDE_PUBLIC_SCHEMA" and modifying the >> PGAPI_TABLES routine to return NULL if the schema name happens to be >> PUBLIC (#ifdef around the line set_tuplefield_string(&row->tuple[1], >> GET_SCHEMA_NAME(table_owner));). This seems to work. > > > Paul, you may find that recent versions of the driver no longer have > the schema problem, eg 8.00.0004. Paradox uses the BDE for all data > access, and I no longer have this problem with Delphi and the BDE. I can't get it it to work for long enough to even test it when schema are enabled (yet). It may work as standard but I doubt it. > >> My next problem which I'm working on at the moment is that the new >> driver completely crashes with no error messages when opening certain >> tables. I can open some but others simply crash paradox (no GPF no >> nothing). All I get is 2 errors in the server log: could not receive >> data from client: Connection reset by peer & >> unexpected EOF on client connection. >> >> I'm not expecting you to solve this one at present. It may be paradox >> being a bit flaky and nothing to do with the ODBC driver (although I >> suspect it is). All I know is that it works with psqlodbc 7.3.200 & >> postgres 7.2.X but isn't working with my compiled driver 8.0.4 and >> postgres 8.0.1. I'm about to downgrade postgres to 7 to see if that >> has any more luck. >> > Do you have Text (Memo) or blob columns by any chance? The original paradox tables did have memo fields. I converted them to a LONGVARCHAR (-1). Would this be a blob in Postgres? Is this a known problem? (He asks clutching at a handy straw beside the monitor) Paul -- Paul Cochrane (paul.m.cochrane@tuht.scot.nhs.uk) +-------------------------------------------------------- | Tayside Orthopaedic & Rehabilitation Technology Centre | Ninewells Hospital & Medical School | Dundee, Scotland, UK. | DD1 9SY | Phone: Internal: 36284 | External: +44 (1382) 496284 | Fax: +44 (1382) 496322 +--------------------------------------------------------