Porting from Mysql to Postgres

From: Dror Matalon <dror(at)matal(dot)com>
To: PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Porting from Mysql to Postgres
Date: 2001-02-01 18:41:18
Message-ID: Pine.BSF.4.21.0102011017550.53887-100000@dnai-216-15-97-241.cust.dnai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Hi,

I'm in the midst of porting Dbjay, a java based frontend, from MySQL to
Postgres. More info about dbjay can be found at http://www.dbjay.com.

1. When I insert a CHAR field and then fetch it, I find out that
the server padded it with spaces to the size of the field. This
happens in Postgres but not in MySQL. I'm using String.trim() on
it on the Java side. Is there a better way to do this, like setting
a flag to tell the server to trim?

2. Looking at the JDBC code it looks like getTableName in a resultset
returns "" rather than the table name. This is a big problem, cause
without the tablename it's impossible to let the user update the
resultset when the table name is unknown. Seeing that php doesn't
offer it and looking at the backend code, it looks like it's both
not Java specific and not easy to implement. Still, what are the
chances of having this available?

3. Once Dbjay is available what are the appropriate newsgroups and
mailing lists to announce it to the Postgres community.

Thanks,

Dror

Dror Matalon

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bob Kline 2001-02-01 19:50:03 Re: Porting from Mysql to Postgres
Previous Message Bruce Momjian 2001-02-01 17:08:51 Re: [INTERFACES] Re: [PATCHES] Re: Fixes and enhancements to JDBC driver(take 2)