~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/row.cc

  • Committer: Monty Taylor
  • Date: 2009-03-06 03:33:24 UTC
  • mfrom: (916.1.2 merge)
  • Revision ID: mordred@inaugust.com-20090306033324-dcedf80g9qzywbvu
Merged Brian's merge... re-rotate the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "config.h"
 
16
#include <drizzled/server_includes.h>
17
17
#include <drizzled/error.h>
18
18
#include <drizzled/session.h>
19
19
 
20
20
#include <drizzled/item/row.h>
21
21
 
22
 
namespace drizzled
23
 
{
24
 
 
25
22
/**
26
23
  Row items used for comparing rows and IN operations on rows:
27
24
 
42
39
 
43
40
  //TODO: think placing 2-3 component items in item (as it done for function)
44
41
  if ((arg_count= arg.elements))
45
 
    items= (Item**) memory::sql_alloc(sizeof(Item*)*arg_count);
 
42
    items= (Item**) sql_alloc(sizeof(Item*)*arg_count);
46
43
  else
47
44
    items= 0;
48
45
  List_iterator<Item> li(arg);
198
195
  for (uint32_t i= 0; i < arg_count; i++)
199
196
    items[i]->bring_value();
200
197
}
201
 
 
202
 
} /* namespace drizzled */