Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D5506474E53 for ; Wed, 20 Nov 2002 09:08:57 -0500 (EST) Received: from jenny.bestkevin.com (jenny.bestkevin.com [151.8.67.18]) by postgresql.org (Postfix) with ESMTP id 3BDE8474E44 for ; Wed, 20 Nov 2002 09:08:56 -0500 (EST) Received: from kevin by jenny.bestkevin.com with local (Exim 3.35 #1 (Debian)) id 18EVYe-0007Tx-00; Wed, 20 Nov 2002 15:10:24 +0100 Date: Wed, 20 Nov 2002 15:10:24 +0100 From: Cherubini Enrico To: pgsql-odbc@postgresql.org Subject: data type conversion ? Message-ID: <20021120141024.GA28464@bestkevin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.28i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/105 X-Sequence-Number: 2282 Hi, I just installed, after a long time, the odbc driver to test accessing to a postgresql db on my debian woody box. Well, my need is to access it from a program that is designed to use other DB, like sybase, M$ sql server and so on...the program is closesd source, so I cannot modify it. The first impact was "bad, I cannot access it" but looking at the queries I noticed that the problem of the error in some table creations, are caused by different name of data type (or unimplemented). Ie...I get: create table AZIENDA ( ....., LOGO_AZIENDA lo(4), ...) this is using the procedure that suppose M$ sql server backend, and: create table AZIENDA ( ....., LOGO_AZIENDA long varbinary) if using the DB2/400 procedure Well..I suppose this field should keep a binary information, but, more generally, shouldn't be nice a way to translate such data type in such a way that can be keeped by postgresql ? On the fly by the odbc driver, before sending the query to the db...It should be a nice option where frontend are not designed to use postgresql. Thanks for your attention. -- Bye Enrico - Le finestre sono spiragli di finta liberta'. Scegli Linux. sė che per sua dottrina fe disgiunto da l'anima il possibile intelletto, perche da lui non vide organo assunto. -- Purgatorio, Canto XXV, vv.64-66