From: | "Anton Melser" <melser(dot)anton(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Shane Ambler" <pgsql(at)007marketing(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: getting postgres to emulate mysql/sqlserver bit datatype |
Date: | 2007-02-12 22:18:55 |
Message-ID: | 92d3a4950702121418n126bf75dsd05026f34f038206@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12/02/07, Anton Melser <melser(dot)anton(at)gmail(dot)com> wrote:
> > I think actually what he needs is what Peter suggested upthread, namely
> > to weaken the context-restriction on the int-to-bool cast.
>
> Indeed... Peter's suggestion seems to have solved all my problems. So
> even though it probably shows just how embarrassingly bad my sql is...
I spoke too soon!
select executor_id, is_dedicated, is_connected, ping_time, host, port,
usr_name,
cpu_max, cpu_usage, cpu_avail, cpu_totalusage, mem_max, disk_max,
num_cpus, os, arch
from executor where is_dedicated = 1 and is_connected = 1
ERROR: operator is not unique: boolean = integer
État SQL :42725
Astuce : Could not choose a best candidate operator. You may need to
add explicit type casts.
Caractère : 201
I get this whether castcontext is 'a' or 'i'. I am so close to having
this fixed!!! Any ideas most welcome...
Cheers
Anton
From | Date | Subject | |
---|---|---|---|
Next Message | Phil Endecott | 2007-02-12 22:31:37 | Still unclear about PQexecParams and "create view" |
Previous Message | Anton Melser | 2007-02-12 21:16:17 | Re: getting postgres to emulate mysql/sqlserver bit datatype |