X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5145CD1BB93 for ; Fri, 9 Apr 2004 17:46:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36867-09 for ; Fri, 9 Apr 2004 17:46:13 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id F1A39D1BBA1 for ; Fri, 9 Apr 2004 17:46:10 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i39Kk9H06045; Fri, 9 Apr 2004 16:46:09 -0400 (EDT) From: Bruce Momjian Message-Id: <200404092046.i39Kk9H06045@candle.pha.pa.us> Subject: Re: schema and win1250 support + misc In-Reply-To: <20040109151444.GA12471@soptik.pzkagis.cz> To: Ludek Finstrle Date: Fri, 9 Apr 2004 16:46:09 -0400 (EDT) Cc: pgsql-odbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/77 X-Sequence-Number: 3972 Ludek Finstrle wrote: > Hello, > > I need schema support in odbc driver (it means change schema when > connecting) more user friendly. So I attach patch for US only. > > Second patch contains support for win1250 encoding and > one (I think) bug fix. It's in pgtypes.c in getCharColumnSize. > This function call SC_get_Curres which can return NULL and > getCharColumnSize doesn't handle it. Here are our comments on the patch: --------------------------------------------------------------------------- Patch 1 adds a preselected scheme name to the list of connection/DSN options. Personally I think this is unecessary because there is already an 'extra settings' option in which the user can include statements such as 'set search_path to' if required. The list of options for psqlodbc is already huge, and in the long term I think we should be looking to remove options rather than add them (things like KSQO and GEQO can be configured by the app using SET, or by the DBA if really required)! Patch 2 adds WIN1250 charset support, and fixes a bug in pgtypes.c. The first part has been applied, the second is obsolete. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073