Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B9ECD61AFBB for ; Fri, 20 Jan 2012 10:23:04 -0400 (AST) Received: from nm28-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.22]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RoFMt-0004cq-Us for pgsql-jdbc@postgresql.org; Fri, 20 Jan 2012 14:23:04 +0000 Received: from [98.138.90.50] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jan 2012 14:22:51 -0000 Received: from [98.138.89.167] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jan 2012 14:22:51 -0000 Received: from [127.0.0.1] by omp1023.mail.ne1.yahoo.com with NNFMP; 20 Jan 2012 14:22:44 -0000 X-Yahoo-Newman-Id: 435869.97446.bm@omp1023.mail.ne1.yahoo.com Received: (qmail 34777 invoked from network); 20 Jan 2012 14:22:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=U0pMC2+Hg1xzfvEMgKhv9WqceT4hKYd1sdPb9gooJ0U546aXxGU3/1I86wAENuNKKoAbQgKFEqAwnQb5dOl0ElDt6GNHpYk5eYrxPO7yn3IoqyJCURNkJgz88SoM+6fyJ+Mm2TwIFxB7GMxSOnhixgTb3apzBLpuNYf/zh9mGYQ= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1327069364; bh=KCPaJlIsJWxEJ89piUtWAF08SoKhxgPp776x/hARmQA=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=vDxAcBgNSDG6g3zw+Ynmu+bb7tP2amyZWVcC6z66PomN7JU6cTkm4f9OBH6sxpSG6Ju1hRUGS1y5t8QTgKJGv/ab02/bbD86tWkIO6Q7QpJzCLW7HU3s83MohHdrBwg10HpARrfBG4VvNwO0nho1cHpYGP88+grNoDN+PjtbNGA= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: dooSWm0VM1nZt.Q_kBNbWINpcM3wMUX_XE1bcA0qB5DLwMk xTBhyFxSNufVUvLa9yW_9sEXretLaF2rpYLpUGDWx.inYKEAAa6_qE5nn0CJ EAw3dIMDaqlbrezDTQbckvvoeOW4EjVumvfZD7ehAldm_zYIlIMZrspG6Dx1 n4Dgt.0NwjiygqVzRXVf2sMtEMcZl1Zh6nGa2zn48sR7wZT2_LPzsefa7Myv ymUPP7J29x3InyVs.cdorF1nqFnv95lZ4RD7OzJyQ2rQ7E5RluTD9YJjisLr _iy.n0Smz45OmkcBiR6HyQnvDGd9DIt1nc9C8BaLN8zOgJP2CsOrgaxLUwby VDhtOc9DuTz_UjECu7LQ9bBdKDMGawsnEQSNNBXQZ.RjC3d6h78Yl_iOFbrb ytRMenqDK98r_.laVWnmK X-Yahoo-SMTP: mpGJl6eswBD2IBufoVEg0Pa8gg-- Received: from [192.12.17.102] (polobo@24.93.23.188 with xymcookie) by smtp111-mob.biz.mail.ne1.yahoo.com with SMTP; 20 Jan 2012 06:22:44 -0800 PST References: <011b01ccd630$c00a3350$401e99f0$@yahoo.com> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com> Cc: Florent Guillaume , "pgsql-jdbc@postgresql.org" X-Mailer: iPad Mail (9A405) From: David Johnston Subject: Re: plpgsql function, comment with single quote, braces Date: Fri, 20 Jan 2012 09:22:43 -0500 To: =?utf-8?B?0KDQvtC80LDQvSDQm9C40YLQvtCy0YfQtdC90LrQvg==?= X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/64 X-Sequence-Number: 22604 On Jan 20, 2012, at 8:33, =D0=A0=D0=BE=D0=BC=D0=B0=D0=BD =D0=9B=D0=B8=D1=82=D0= =BE=D0=B2=D1=87=D0=B5=D0=BD=D0=BA=D0=BE wrote:= >> Otherwise what's the problem if you just deactivate escape processing? >=20 > Because it is alogical. > I follow Postgresql documentation for writing sql code. I want to > write comments in functions. I want to write braces in literals. >=20 > =D0=A1an one of the developers answer me or register this bug? >=20 Speaking without full knowledge here but... This has nothing to do with PostgreSQL; in fact the database never even sees= the original form of the query. In order to facilitate portability ODBC an= d JDBC have internal escape sequences for certain things. In this case you w= ant to bypass that escaping and supply the raw SQL to the server and thus yo= u need to follow the suggestion and turn off escape processing. If you do t= his and the problem does not go away then there is a bug otherwise things ar= e working logically and as intended. If you still do not like the solution take it up with the JDBC specification= writers; the people on this mailing list are just following instructions. David J.=