agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Karen Goh <karenworld@yahoo.com>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: how to resolve org.postgresql.util.PSQLException: ERROR: operator does not exist: text = integer?
Date: Tue, 16 Jul 2019 15:44:03 +0000 (UTC)
Message-ID: <774827472.1178535.1563291843182@mail.yahoo.com> (raw)
In-Reply-To: <87sgr6ypvp.fsf@news-spur.riddles.org.uk>
References: <110414461.528890.1563075361778@mail.yahoo.com>
	<1846547624.530883.1563075598322@mail.yahoo.com>
	<CAKFQuwaLmrFiSAOjzcK2-43F-016CZhP5iRpnyzJ0PzsKEgzog@mail.gmail.com>
	<40544440.741577.1563178850210@mail.yahoo.com>
	<CAKFQuwYJsFw9p_qLyashvUmONFZre9OxgEWxDkqdY6-gWB9G7A@mail.gmail.com>
	<768811852.1032981.1563242356010@mail.yahoo.com>
	<CAKFQuwaC_Z24XxjvsSgYPvSNpu+K1Z9_60auVxEpjFQpE5zrFg@mail.gmail.com>
	<774271584.1091322.1563257675315@mail.yahoo.com>
	<1984680550.1098414.1563257845450@mail.yahoo.com>
	<f11f7f05-e3fc-2794-e4ec-4b7144ae56be@stb-datenservice.de>
	<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>
	<472848228.1169550.1563289333511@mail.yahoo.com>
	<87sgr6ypvp.fsf@news-spur.riddles.org.uk>

 




On Tuesday, July 16, 2019, 11:21:47 PM GMT+8, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:


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

>> What exactly is in your Program Files?

Karen> PostgreSQL which has folder named 10 and then open up you will
Karen> get to see bin folder, data folder, script folder ....

OK, and did you try doing "SHOW log_destination;" as a query, for
example in the pgadmin4 query window? also "SHOW logging_collector;"
and "SHOW data_directory;"

Alright. Thanks. Let me try it.

>> If you want to pass an array value as a parameter, you can't use IN
>> (x), you have to use = ANY (x) instead.

Karen> Is Any (x) this format applies only to Postgresql ?

scalar = ANY (arrayvalue) is a postgresql extension, yes.

The SQL spec says that the syntax

(col IN (1,2,3))

is equivalent to

(col = ANY (VALUES (1),(2),(3)))

but this doesn't allow you to pass a single array parameter for the IN
list either in PostgreSQL or in standard SQL. In both PostgreSQL and
standard SQL you can do:

(col = ANY (select v from unnest(arrayvalue) as u(v)))

but this isn't the recommended style for PostgreSQL because it is less
efficient.

I have been told In clause in the way to do it.
So, not sure why am I getting that error....
cos preferably not using any extension if it can be done using In clause..


-- 
Andrew (irc:RhodiumToad)


  

view thread (24+ messages)  latest in thread

Message-ID: <774827472.1178535.1563291843182@mail.yahoo.com>
Permalink:  ../774827472.1178535.1563291843182@mail.yahoo.com/
Also on:    postgresql.org/message-id/774827472.1178535.1563291843182@mail.yahoo.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: karenworld@yahoo.com, andrew@tao11.riddles.org.uk, pgsql-sql@lists.postgresql.org
  Subject: Re: how to resolve org.postgresql.util.PSQLException: ERROR: operator does not exist: text = integer?
  In-Reply-To: <774827472.1178535.1563291843182@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox