public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: [email protected]
To: [email protected]
To: [email protected]
Subject: Re: Handling (None,) Query Results
Date: Sat, 5 Dec 2020 08:19:32 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
On 12/5/20 8:14 AM, [email protected] wrote:
> I tried the COALESCE approach but I thought the query still returned (None,).
From docs:
https://www.postgresql.org/docs/12/functions-conditional.html#FUNCTIONS-COALESCE-NVL-IFNULL
"The COALESCE function returns the first of its arguments that is not
null. Null is returned only if all arguments are null. ..."
So if it returned NULL/None then the first and second values both
resolved to NULL.
>
> However, I just tried it again and I got a (Decimal('0'),) return.
>
> I should be able to make that work.
>
> Thanks everyone for your rapid assistance.
>
> Best,
>
> Hagen
>
--
Adrian Klaver
[email protected]
view thread (5+ messages)
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Handling (None,) Query Results
In-Reply-To: <[email protected]>
* 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