X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id F195E9DC80E for ; Thu, 23 Feb 2006 09:50:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52437-07 for ; Thu, 23 Feb 2006 09:50:25 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.201]) by postgresql.org (Postfix) with ESMTP id C829D9DC806 for ; Thu, 23 Feb 2006 09:50:19 -0400 (AST) Received: by nproxy.gmail.com with SMTP id y25so53361nfb for ; Thu, 23 Feb 2006 05:50:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ocDocBDkHy9N5vRf+E19iYxSXmUwLSoVL5rRWdzmIoa1RSt1llCCWJ+zHozKY2okcymN03Vj2zBDseMfblxwV6EKkcPnOeuPPYONMwP8ro9JYcFMCDuUWJpPCEeGjFuByJiOX9T4+q5eMwK1JzimVUqDaPsEkyb4q+4Gg7Ec0v8= Received: by 10.48.255.10 with SMTP id c10mr2357330nfi; Thu, 23 Feb 2006 05:50:23 -0800 (PST) Received: by 10.48.210.16 with HTTP; Thu, 23 Feb 2006 05:50:23 -0800 (PST) Message-ID: Date: Thu, 23 Feb 2006 07:50:23 -0600 From: "Michael Shulman" To: "Ludek Finstrle" Subject: Re: psqlODBC generating incorrect SQL? Cc: pgsql-odbc@postgresql.org In-Reply-To: <20060217160802.GA27499@soptik.pzkagis.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060217115355.GA25896@soptik.pzkagis.cz> <20060217160802.GA27499@soptik.pzkagis.cz> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.166 required=5 tests=[AWL=0.166] X-Spam-Score: 0.166 X-Spam-Level: X-Archive-Number: 200602/136 X-Sequence-Number: 7265 Yes, it is very simple. Just create a Unicode database and then try to connect to it from an ANSI data source. On 2/17/06, Ludek Finstrle wrote: > Fri, Feb 17, 2006 at 09:41:07AM -0600, Michael Shulman napsal(a): > > On 2/17/06, Ludek Finstrle wrote: > > > Are you both using same psqlODBC driver (version ant type - ANSI vs. > > > Unicode)? > > > > That was it! She had it set to ANSI and mine (and the database) is > > Unicode. Changing hers to unicode fixes it. Thanks! > > > > It would be nice if the driver could give a more informative error > > message if this happens, though. I never would have guessed that > > would cause a problem like this. > > I tried only some shots into dark. I have no idea what's happen. > Are you able simulate the problem on your computer? Or even better > could you create minimalistic application which reproduce the problem > and send it to me? > > Regards, > > Luf >