Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework Components > Databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2009, 08:22 PM
Junior Member
 
Join Date: Jun 2009
Location: NY
Posts: 2
Default Getting stale, inaccurate results from a Select query?

We're using ZF 1.7.7 on our current project, and we've got a big query that joins a number of tables together. The problem is that one field is returning old results that aren't in the database anymore. I've tried writing select statements to get the field itself, and that reflects the current database values. And if I run the big query in PHPMyAdmin (I'm using $select->assemble() ) it also shows the correct values. It's only on the one big query, and only for that one field. If I change one of the other fields, the big query shows it properly.

We're not using cacheing or anything, and I've tried flushing the tables and all that.

So.. has anyone seen this before? Any idea how to resolve this?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-30-2009, 06:21 PM
Junior Member
 
Join Date: Jun 2009
Location: NY
Posts: 2
Default

Urgh, stupid mistake. It wasn't pulling old results, it was pulling from a different table that had the same field name.

nevermind...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 12:00 AM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0