MySQL query returns different set of results on two identical databases

Posted by 1nsane on Stack Overflow See other posts from Stack Overflow or by 1nsane
Published on 2010-03-09T03:01:19Z Indexed on 2010/03/09 3:06 UTC
Read the original article Hit count: 662

Filed under:
|
|

I exported a live MySQL database (running mysql 5.0.45) to a local copy (running mysql 5.1.33) with no errors upon import. There is a view in the database, that when executed locally, returns a different set of data than when executed remotely. It's returning 32 results instead of 63. When I execute the raw sql, the same problem occurs. I've inspected the data in all tables being joined, and the counts are the same.

The query is simple and has no where conditions - but about 10 joins. Aside from the differences in mysql versions... I can't find any reason that this query would return different results between databases... since they are effectively exact copies.

Has anyone experienced a problem like this before?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query