From: | Bill Moran <wmoran(at)potentialtech(dot)com> |
---|---|
To: | "Kurt Westerfeld" <kwesterfeld(at)novell(dot)com> |
Cc: | "Radosław Smogura" <rsmogura(at)softperience(dot)eu>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Date Parameter To Query Confusing Optimizer |
Date: | 2011-01-04 16:02:37 |
Message-ID: | 20110104110237.821eabb3.wmoran@potentialtech.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
In response to "Kurt Westerfeld" <kwesterfeld(at)novell(dot)com>:
> >>> Radosław Smogura<rsmogura(at)softperience(dot)eu> 1/4/2011 9:48 AM >>>
> Can You try "...BETWEEN ?::date and ?::date ..." syntax or send
> statement causing problems?
>
> As for the BETWEEN clause, I'm using hibernate and don't want to put a database-specific SQL query in place.
You could do "BEWTEEN CAST(? AS DATE) AND CAST(? AS DATE)" and it wouldn't
be database-specific.
You might also want to consider top-posting. I'm not sure why I read enough
of this to understand it, as I usually get confused an frustrated when
things have been top posted and stop reading.
--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
From | Date | Subject | |
---|---|---|---|
Next Message | tv | 2011-01-04 16:22:05 | Re: Table Vacuum (to prevent wraparound) |
Previous Message | Kurt Westerfeld | 2011-01-04 15:51:45 | Re: Date Parameter To Query Confusing Optimizer |