You are here: Re: Still problems with left joins and mysql 5.1.x « MySQL Databases « IT news, forums, messages
Re: Still problems with left joins and mysql 5.1.x

Posted by Henri Schomδcker on 12/10/05 17:37

Ian Pawson wrote:

> I have had a similar problem with joins in 5 that work ok in 4. From the
> 5 help file this would seem to be due the a change in the optimization
> used to make it standards compliment. In your case it is dropping your
> column. In my case moving the position of the join in the query got it
> working in 5 but not in 4.

Hi Ian,

Fortunately, I got a similar answer in a german mysql newsgroup.
In my queries, there were two left joins and the other table mappings were
made by where statements.
I got the hint to replace the where mappings by inner joins which have to
stand before the left joins and NOT to separate the joins by kommata.
These queries now also work on mysql 4 & 5.
I also read the statement, that this new behaviour should/would be made
backwards-compatible again so old queries would work again. I directly
tried it with the newest mysql version but my queries didn't work.
So I edited the queries like I wrote and now everything is fine.

Many thanks for your answer.
Yours Henri

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация