pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedStrange change in my where clause?
3+ messages / 2 participants
[nested] [flat]
* Strange change in my where clause?
@ 2004-12-06 12:52 Bjørn T Johansen <btj@havleik.no>
0 siblings, 1 reply; 3+ messages in thread
From: Bjørn T Johansen @ 2004-12-06 12:52 UTC (permalink / raw)
To: pgsql-jdbc
I have a select where I end like this:
...where week = 40 and year = 2004 order by trykkedato, presseID, godeaviser
but the statement logged by the server is
...where week = 40 and year = 2004 order by 1,3,20
Why? The order get messed up....
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen
btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Strange change in my where clause?
@ 2004-12-06 13:01 Kris Jurka <books@ejurka.com>
parent: Bjørn T Johansen <btj@havleik.no>
0 siblings, 1 reply; 3+ messages in thread
From: Kris Jurka @ 2004-12-06 13:01 UTC (permalink / raw)
To: Bjørn T Johansen <btj@havleik.no>; +Cc: pgsql-jdbc
On Mon, 6 Dec 2004, [ISO-8859-1] Bjørn T Johansen wrote:
> I have a select where I end like this:
>
> ...where week = 40 and year = 2004 order by trykkedato, presseID, godeaviser
>
> but the statement logged by the server is
>
> ...where week = 40 and year = 2004 order by 1,3,20
>
I find this a little hard to believe. What logging option are you using?
It certainly comes out as expected here with log_statement.
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Strange change in my where clause?
@ 2004-12-06 13:05 Bjørn T Johansen <btj@havleik.no>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 3+ messages in thread
From: Bjørn T Johansen @ 2004-12-06 13:05 UTC (permalink / raw)
To: pgsql-jdbc
Well, it may be my report tool that is changing the sql statement; I am just trying to
figure out which one does the change...
BTJ
Kris Jurka wrote:
>
> On Mon, 6 Dec 2004, [ISO-8859-1] Bjørn T Johansen wrote:
>
>
>>I have a select where I end like this:
>>
>>...where week = 40 and year = 2004 order by trykkedato, presseID, godeaviser
>>
>>but the statement logged by the server is
>>
>>...where week = 40 and year = 2004 order by 1,3,20
>>
>
>
> I find this a little hard to believe. What logging option are you using?
> It certainly comes out as expected here with log_statement.
>
> Kris Jurka
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-12-06 13:05 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 12:52 Strange change in my where clause? Bjørn T Johansen <btj@havleik.no>
2004-12-06 13:01 ` Kris Jurka <books@ejurka.com>
2004-12-06 13:05 ` Bjørn T Johansen <btj@havleik.no>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox