Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 01:41 PM
Junior Member
 
Join Date: Apr 2008
Posts: 5
Default Annoyance

Hi,

I have a slight annoyance with Zend_db (having recently migrated from ADODB) in that any table you join, it also puts table.* in the SELECT part of the statement.

Is there a way to pass a parameter to turn this off or does it have to be edited directly? I don't want to edit the source code too much for later upgrades etc.

Thanks

A
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-27-2008, 01:23 AM
Junior Member
 
Join Date: Oct 2007
Posts: 21
Default

Always best to check the API when you want to know what parameters a function may take.

Docs For Class Zend_Db_Select

The third parameter, a list of columns to fetch, defaults to self::SQL_WILDCARD, that is by default all columns are fetched. I believe an empty array() will select no columns, which is what you're trying to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB 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 10:59 AM.