Mesazhi #311 i Listës së E-mailave webobjects-dev@wocommunity.org
Nga: Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org>
Lënda: Re: [WO-DEV] How would you create such an EOQualifier representing Postgresql date_trunc(...)?
Data: Wed, 3 Nov 2021 13:48:19 +0100
Për: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Të dhëna të nënshkruara (Text SHA256)
No one?
I can live with raw rows but would have been great if anyone knows

---markus---

On 1 Nov 2021, at 12:54, Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org> wrote:

Need to find objects satisfying the following condition:

CHECK_IN_TIME must be at least on the same day or later than REQUESTED. Both values are stored as NSTimestamp with a 15 minutes precision.

In Postgres I would write

...where date_trunc('day', CHECK_IN_TIME) >= date_trunc('day', REQUESTED)

How can I create a qualifier for this? Is this possible at all or do I have to resort to raw rows for SQL?

Thanks
---markus---



Markus Ruggiero

rucotec GmbH                        web https://rucotec.ch
Steinenvorstadt 79                email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701










Përmbajtja e pandryshuar, sipas verifikimit të:
<markus.ruggiero@rucotec.ch>
Regjistrohu (për LAJME Automatike) Regjistrohu (për KLASIFIKIME) Pajtohu (për INDEKSIME) Ç'regjistrohu Shkruaji Administratorit të Listës