Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tqt48-0001LM-LE for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jan 2013 22:15:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tqt48-0001mq-5s for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jan 2013 22:15:08 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tqqpv-0006lA-Ga for pgsql-bugs@postgresql.org; Thu, 03 Jan 2013 19:52:19 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tqqpm-0001f1-HR for pgsql-bugs@postgresql.org; Thu, 03 Jan 2013 19:52:18 +0000 Received: by mail-la0-f41.google.com with SMTP id em20so8607247lab.0 for ; Thu, 03 Jan 2013 11:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=ufacWC7llaRAFk+6F93Icuw/gs95WE82dC7o/L/K9CI=; b=vw7iGbhZnCRxVzMwR3qNGbPoYPtsYk7HJaiN+YoQIBf7XOGiHDSPxKklqOwj4yUt+F Sbx1S0xsBvGVLriCE0BFpBB67P7lU1OQqUqHSChzbL/nY8Q3SK0tmrxjzy0N07RcmLQH FP4Y0hW+RkBIPocn2RXirP1r7bFjaWgoCiJhxIFgFDxErE5/+OtstzqtnfpdlCMzIvUI 4Mjejs0EFCZtPPvNQY6okO6kqtHctlntEDpM+lNlAWY6OhbX7LMOBT/ZYphlaSW/BjCr KW3QaexcpPHh8DaGyz/G3lPcHFO3/OrMJ8y3a8JIr6iWv1ie97VGTDB7gJG2swbFyvqr 8y3Q== X-Received: by 10.152.121.212 with SMTP id lm20mr47173862lab.42.1357242729471; Thu, 03 Jan 2013 11:52:09 -0800 (PST) Received: from [192.168.2.36] ([178.163.17.34]) by mx.google.com with ESMTPS id if8sm18744492lab.1.2013.01.03.11.52.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Jan 2013 11:52:08 -0800 (PST) Subject: Re: BUG #7783: lower & upper function incorrect work Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=koi8-r From: Aleksander Shniperson In-Reply-To: Date: Thu, 3 Jan 2013 23:52:03 +0400 Cc: pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BC9A046-7C32-4676-BFBD-EE691629FEAC@gmail.com> References: To: Pavel Stehule X-Mailer: Apple Mail (2.1283) X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, thanks for answer. Yes this may help, but Postgres must convert it automatically. 03.01.2013, =D7 22:27, Pavel Stehule =CE=C1=D0=C9=D3=C1=CC(=C1): > Hello >=20 > maybe this is same problem >=20 > http://postgresql.1045698.n5.nabble.com/PostgreSQL-UTF-8-and-Mac-OS-X-td1= 852185.html >=20 > please, try to use different collate - maybe this advice should to help t= o you >=20 > http://yzisin.wordpress.com/2012/01/09/how-to-fix-locale-issues-in-mac-os= -x-lion-terminal/ >=20 > regards >=20 > Pavel Stehule >=20 > 2013/1/3 : >> The following bug has been logged on the website: >>=20 >> Bug reference: 7783 >> Logged by: Alexander Shniperson >> Email address: alex.shniperson@gmail.com >> PostgreSQL version: 9.1.7 >> Operating system: osx lion 10.7.5 >> Description: >>=20 >> Hi. >>=20 >> I have problem at my project, try to do simple steps: >> 1) create DataBase with >> ENCODING =3D 'UTF8' >> LC_COLLATE =3D 'C' >> LC_CTYPE =3D 'C' >>=20 >> 2) create new table at just created database >>=20 >> CREATE TABLE testtable >> ( >> id serial NOT NULL, >> name character varying(50) NOT NULL, >> CONSTRAINT testtable_pkey PRIMARY KEY (id ) >> ) >>=20 >> 3) insert one simple record with Russian word >>=20 >> INSERT INTO testtable (id, name) VALUES (1, '=FA=C1=CC=CF=C7'); >>=20 >> 4) try to select data with upper & lower functions with 'like' operator >>=20 >> select *, lower(name), upper(name) from testtable where lower(name) like >> '%=DA=C1=CC=CF=C7%' >>=20 >> 5) as result you must see nothing, just fields without data >>=20 >> fix it please, thanks. >>=20 >>=20 >>=20 >> -- >> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-bugs --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs