Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.9.2/8.9.1) with ESMTP id OAA70727 for ; Mon, 22 Mar 1999 14:35:40 -0500 (EST) (envelope-from byronn@insightdist.com) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id OAA09641 for pgsql-interfaces@hub.org; Mon, 22 Mar 1999 14:21:37 -0500 (EST) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!byronn using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA22518; Mon, 22 Mar 1999 14:07:11 -0500 Received: from byronn by ceodev (AIX 4.1/UCB 5.64/4.03) id AA49214; Mon, 22 Mar 1999 14:07:11 -0500 Message-Id: <36F69686.C5B159C6@insightdist.com> Date: Mon, 22 Mar 1999 14:14:14 -0500 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: Daniel Cc: pgsql-interfaces@hub.org Subject: Re: [INTERFACES] why there's only char type? References: <003d01be74c2$9d43db60$87f1b9ca@dvader.ids.org.my> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Daniel wrote: > Last week I got PostgreSQL 6.3.x running with -i switch and then created a > test database. On Win95 end, postODBC was installed and my PowerBuilder > could connect to the database. Then I tried to transfer the data from Sybase > SQL Anywhere to Postgres via Powerbuilder's pipeline mechanism. In > Powerbuilder I did notice that there were some unfamiliar database type in > Postgres such as INT4 to represent Sybase's INTEGER type and got me really > excited. However I couldnt create anything in Postgres because I forgot to > uncheck the "read-only" option when i setup the odbc connection, but that's > different story. > > After coming back from weekend, I tried to do the transfer of data again, > and I did make sure the "read-only" option has been unchecked. But right now > I encounter a new problem: I found that I could no longer see other data > type in Postgres except CHAR. I've tried all the possible setting in odbc > connection but it still doesn't help. What seems to be the problem? Please > help. > I'm not sure why you would only see 'char'. If the application is using the odbc function SQLGetTypeInfo() to retrieve the data types, then maybe it is looking for data types that support a certain feature. Maybe this is configurable. I'm not really sure what your application is doing. If you want, you could send an odbc trace log of the session so we could at least see if it is calling SQLGetTypeInfo() and retrieving the results. Otherwise, there is nothing else I can do. Byron