Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B04CA86A54B for ; Wed, 18 Jan 2012 18:30:37 -0400 (AST) Received: from smtp109.prem.mail.ac4.yahoo.com ([76.13.13.92]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Rne1Z-0001T1-E4 for pgsql-jdbc@postgresql.org; Wed, 18 Jan 2012 22:30:38 +0000 Received: (qmail 38081 invoked from network); 18 Jan 2012 22:30:20 -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:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=f8rkso0nuojzsZpH0sUxFnIqNM+t8yj29tYT1xRBzxPAutfCnGokmckoHkrgYngG/ZTTxapFb43zBGZUaC1P9tsInj0J8RyIilKIZCK+rBdIHKmbl09SHaasTA1QxXJpKJzvs7bIXKQ/Pr0jHwSLG25515KStIJzTOsRRaxcCe8= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1326925820; bh=IOQsxHMgTmjKe9ZqfbOz6pr2BybaVa7bL8bU3QcwweQ=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=Z+LUZkWXbY2A1HEY46qr4l5cDKi8b6jj9Qu3SLxgNHNJSNiSCATaZH43+vRzd5u8yE9bidBHJxcRUSQUUIHyBTaMzIwKzoDyZVN8yt/fGjtwzvjInIC8ldm6e96YOPqec6jzep36+jwyo0+vUvHqBNquhgE01YE+NiAAUEti2Jw= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: DUGRQpQVM1nYrDUJiZnw30i46wpywz0lU_IHLApANPaikR5 SW2KINI2u2qp3yq3_oQpQH_810e5Aa9yH5JTOWdLx53Q9kvcSTp.BfztqC_K q_5lu8m5v5x3mweAPYzbCGIxFQt28t6.jWwawvghOejox4ddJKJ0VVQJyy6Q LF0p8Rv5zPQPNe7km.cV2cfnC8T4gKJvsx8.Erx.wiiirvqvcM7zL7EdOa2H JkUwW7KXlOiG8jnJl5d0kwqMdrt4HhezD.6Zeuje7sxRveQCxgxU_y5lXFcB pLsUPsGbOoQuigXdK1SW1Nig1_W3MIfAw810ypsnbRlH7OUx.MCIG.mMBvSd P.Kf..bzO9XZZOkMJgXxorP_CBU4m1aL41xU.sblWvnK8wmwnY9uA4.VwVF5 rY_tYhNRHdU0IGcW.bG3IST7wVmm8YRvOAiHgKyM9OQ2qw6RZXs4w__Zhvx_ 0PGKMIzf2PZ1.s4BK5aBdVSHfM3gf35FqmCDQ0cSgxgWvsJiYVqIvRA-- X-Yahoo-SMTP: mpGJl6eswBD2IBufoVEg0Pa8gg-- Received: from WolfDog (polobo@24.93.23.188 with login) by smtp109.prem.mail.ac4.yahoo.com with SMTP; 18 Jan 2012 14:30:20 -0800 PST From: "David Johnston" To: =?koi8-r?B?J/LPzcHOIOzJ1M/X3sXOy88n?= , References: In-Reply-To: Subject: Re: plpgsql function, comment with single quote, braces Date: Wed, 18 Jan 2012 17:30:14 -0500 Message-ID: <011b01ccd630$c00a3350$401e99f0$@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQK9Vplr0powOF0OJYlO81rU1xjY8JQxsjFw Content-Language: en-us X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/52 X-Sequence-Number: 22592 -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of ????? ?????????? Sent: Wednesday, January 18, 2012 4:20 PM To: pgsql-jdbc@postgresql.org Subject: [JDBC] plpgsql function, comment with single quote, braces This email repeats my post http://www.sql.ru/forum/actualthread.aspx?tid=908777 I used PostgreSQL 9.1.1 on x86_64-apple-darwin10.8.0, compiled by i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3), 64-bit PostgreSQL 8.4.6 on i386-apple-darwin, compiled by GCC i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370), 32-bit with postgresql-8.4-701.jdbc3.jar postgresql-8.4-701.jdbc4.jar postgresql-9.1-901.jdbc3.jar postgresql-9.1-901.jdbc4.jar for creating function like this:
create or replace function f ()
returns void as $f$ begin
--  '   comment with single quote symbol
declare
 _A_65 text := '{A}';
 _B_66 text := '{B}';
 _C_67 text := '{C}';
 _D_68 text := '{D}';
 _E_69 text := '{E}';
 _F_70 text := '{F}';
 _G_71 text := '{G}';
 _H_72 text := '{H}';
 _I_73 text := '{I}';
 _J_74 text := '{J}';
 _K_75 text := '{K}';
 _L_76 text := '{L}';
 _M_77 text := '{M}';
 _N_78 text := '{N}';
 _O_79 text := '{O}';
 _P_80 text := '{P}';
 _Q_81 text := '{Q}';
 _R_82 text := '{R}';
 _S_83 text := '{S}';
 _T_84 text := '{T}';
 _U_85 text := '{U}';
 _V_86 text := '{V}';
 _W_87 text := '{W}';
 _X_88 text := '{X}';
 _Y_89 text := '{Y}';
 _Z_90 text := '{Z}';
 _a_97 text := '{a}';
 _b_98 text := '{b}';
 _c_99 text := '{c}';
 _d_100 text := '{d}';
 _e_101 text := '{e}';
 _f_102 text := '{f}';
 _g_103 text := '{g}';
 _h_104 text := '{h}';
 _i_105 text := '{i}';
 _j_106 text := '{j}';
 _k_107 text := '{k}';
 _l_108 text := '{l}';
 _m_109 text := '{m}';
 _n_110 text := '{n}';
 _o_111 text := '{o}';
 _p_112 text := '{p}';
 _q_113 text := '{q}';
 _r_114 text := '{r}';
 _s_115 text := '{s}';
 _t_116 text := '{t}';
 _u_117 text := '{u}';
 _v_118 text := '{v}';
 _w_119 text := '{w}';
 _x_120 text := '{x}';
 _y_121 text := '{y}';
 _z_122 text := '{z}';
begin
end;

end; $f$ language plpgsql;
and get this in my database:
...
CREATE OR REPLACE FUNCTION f()
  RETURNS void AS
$BODY$ begin
--  '   comment
declare
 _A_65 text := '{A}';
 _B_66 text := '{B}';
 _C_67 text := '{C}';
 _D_68 text := 'DATE ';
 _E_69 text := 'E';
 _F_70 text := '';
 _G_71 text := '{G';
 _H_72 text := '{H}';
 _I_73 text := '{I}';
 _J_74 text := '{J}';
 _K_75 text := '{K}';
 _L_76 text := '{L}';
 _M_77 text := '{M}';
 _N_78 text := '{N}';
 _O_79 text := '';
 _P_80 text := '{P}';
 _Q_81 text := '{Q}';
 _R_82 text := '{R}';
 _S_83 text := '{S}';
 _T_84 text := 'TIME ';
 _U_85 text := '{U}';
 _V_86 text := '{V}';
 _W_87 text := '{W}';
 _X_88 text := '{X}';
 _Y_89 text := '{Y}';
 _Z_90 text := '{Z}';
 _a_97 text := '{a}';
 _b_98 text := '{b}';
 _c_99 text := '{c}';
 _d_100 text := 'DATE ';
 _e_101 text := 'e';
 _f_102 text := '';
 _g_103 text := '{g';
 _h_104 text := '{h}';
 _i_105 text := '{i}';
 _j_106 text := '{j}';
 _k_107 text := '{k}';
 _l_108 text := '{l}';
 _m_109 text := '{m}';
 _n_110 text := '{n}';
 _o_111 text := '';
 _p_112 text := '{p}';
 _q_113 text := '{q}';
 _r_114 text := '{r}';
 _s_115 text := '{s}';
 _t_116 text := 'TIME ';
 _u_117 text := '{u}';
 _v_118 text := '{v}';
 _w_119 text := '{w}';
 _x_120 text := '{x}';
 _y_121 text := '{y}';
 _z_122 text := '{z}';
begin
end;

end; $BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;
...
please check it. ---------------------------------------------------------------------------- -------------- Check What? You do not provide enough information in this posting and while you do link to a more detailed posting online it is in Russian whereas you are apparently asking a question that you expect an English speaking audience to be able to answer. How are you executing your CREATE FUNCTION statement? What are you using to see what is in the database? Why are you including "
" within a text e-mail?

Since you bring it up if the linked post receives an answer it would be nice
if you could provide a quick translation of what is/was found in order to
wrap up / close this listing.

David J.