Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnOyJ-0008LK-5J for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2019 15:02:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnOyG-0006Va-IC for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2019 15:02:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnOyG-0006OH-4S for pgsql-sql@lists.postgresql.org; Tue, 16 Jul 2019 15:02:24 +0000 Received: from sonic314-13.consmr.mail.bf2.yahoo.com ([74.6.132.123]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hnOy9-0008Pq-8t for pgsql-sql@lists.postgresql.org; Tue, 16 Jul 2019 15:02:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1563289335; bh=zXYKGSNAF8s3orZJA/2Ld8WrQXuJRMnzO+mxkxoo7DA=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=Z8/h9RLXvXef35M7D9/WZ3qgHcz7I3/yJHSV3/2gXI2j+rs/iRPYkO5rIrRt4yEDlkkFGBt84kQjeiizEL88jRfULzNB6yuUrrR6uRvDJK2BwzQWBtnA4ZFKDccSExnWS4j09tSUjmUr/K1U/h+MrP0JzG8sxIlO5ZtOtHq1DdO4pSVsW6xF4dF2giP9KhOnRJDRoJs2knlUWTr/FBm0D7osXjrjMTGhyBuzZ1bWXmVqeiB9+7hRmRegkmBWMqaB5hmcY2rg/z+s53dtNdGc+ujJZF43Y/tg4LjQ++Y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ddxWCa5YKyqJYtiqiTyHMc_QI75SJvWupFHJ_7m G3ntRdfhfuWz42QPauAnE1e3tENnozm3KhqsF6Lyew5vBRP7UnnvXurWjnI12wOAhUI4d7OkNrTM E7JKiWq2G55N5_brgVkmj4oizxIdm5oJJtV94qGZN2cvwZu0sioPE_RGCeWd.mxe.x9PJEon84S6 Lta5aSUslh4Lfn2A2oXlOStPv8cnhPHEye5NMwk6oN1bOxDxt3KN_l9BNm7__mza75hlFLXDvN_z s7Y6bfA7RARUA8FIfvYUztL1E1ToG8lAzeikOSchPgg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Tue, 16 Jul 2019 15:02:15 +0000 Date: Tue, 16 Jul 2019 15:02:13 +0000 (UTC) From: Karen Goh To: Andrew Gierth Cc: pgsql-sql@lists.postgresql.org Message-ID: <472848228.1169550.1563289333511@mail.yahoo.com> In-Reply-To: <871ryq12hp.fsf@news-spur.riddles.org.uk> References: <110414461.528890.1563075361778@mail.yahoo.com> <1846547624.530883.1563075598322@mail.yahoo.com> <40544440.741577.1563178850210@mail.yahoo.com> <768811852.1032981.1563242356010@mail.yahoo.com> <774271584.1091322.1563257675315@mail.yahoo.com> <1984680550.1098414.1563257845450@mail.yahoo.com> <59735533.1068095.1563265280844@mail.yahoo.com> <87o91u1idu.fsf@news-spur.riddles.org.uk> <1919398337.1106688.1563269115584@mail.yahoo.com> <87k1ci1g9u.fsf@news-spur.riddles.org.uk> <2066139407.1119562.1563270535921@mail.yahoo.com> <87d0ia1bmt.fsf@news-spur.riddles.org.uk> <1787690642.1167081.1563281149734@mail.yahoo.com> <875zo213dq.fsf@news-spur.riddles.org.uk> <274777029.1154161.1563286780671@mail.yahoo.com> <871ryq12hp.fsf@news-spur.riddles.org.uk> Subject: Re: how to resolve org.postgresql.util.PSQLException: ERROR: operator does not exist: text = integer? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1169549_1536579500.1563289333510" Content-Length: 2966 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1169549_1536579500.1563289333510 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Tuesday, July 16, 2019, 10:28:57 PM GMT+8, Andrew Gierth wrote: >>>>> "Karen" == Karen Goh writes: Karen> Yes. I have downloaded and it is inside my Program Files. What exactly is in your Program Files? PostgreSQL which has folder named 10 and then open up you will get to see bin folder, data folder, script folder .... Karen> And now I am getting another error : Karen> org.postgresql.util.PSQLException: ERROR: operator does not exist: text = character varying[] Someone just asked this a few minutes ago on the IRC channel but left without acknowledging my response; was that you? Karen> But, I check stackoverflow, it is mentioned that text is the Karen> best definition. And this is what I used for subject_name which Karen> is a list I am getting from the In clause. character varying[] means _array of varchar_, of course you can't compare an array directly against a scalar. If you want to pass an array value as a parameter, you can't use IN (x), you have to use = ANY (x) instead. Is Any (x) this format applies only to Postgresql ? and x is subject_name the column name ? -- Andrew (irc:RhodiumToad) ------=_Part_1169549_1536579500.1563289333510 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable





On Tuesday, July 16, 2019, 10:28:5= 7 PM GMT+8, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:

>>>>> "Karen" =3D=3D Karen Goh <karenworld= @yahoo.com> writes:

Karen> Yes. I have downloaded and it is in= side my Program Files.

What exactly is in your Program Files?
PostgreSQL which has folder named 10 and then open up you will get to see = bin folder, data folder, script folder ....

Karen> And now I am g= etting another error :

Karen> org.postgresql.util.PSQLException: = ERROR: operator does not exist: text =3D character varying[]

Someone= just asked this a few minutes ago on the IRC channel but left
without a= cknowledging my response; was that you?

Karen> But, I check stack= overflow, it is mentioned that text is the
Karen> best definition. An= d this is what I used for subject_name which
Karen> is a list I am ge= tting from the In clause.

character varying[] means _array of varcha= r_, of course you can't
compare an array directly against a scalar.<= br>
If you want to pass an array value as a parameter, you can't use= IN (x), you
have to use =3D ANY (x) instead.

Is Any (x) this f= ormat applies only to Postgresql ? and x is subject_name the column name ?<= br>

--
Andrew (irc:RhodiumToad)


= =20 ------=_Part_1169549_1536579500.1563289333510--