~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_send.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-06 15:49:49 UTC
  • mto: (2226.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2227.
  • Revision ID: olafvdspek@gmail.com-20110306154949-zzso0l15mbwi60xb
Provide drizzle/drizzle.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/plugin/client.h>
25
25
#include <drizzled/plugin/query_cache.h>
26
26
#include <drizzled/plugin/transactional_storage_engine.h>
 
27
#include <drizzled/select_result.h>
27
28
 
28
29
namespace drizzled
29
30
{
60
61
  bool send_fields(List<Item> &list)
61
62
  {
62
63
    bool res;
63
 
    if (! (res= session->client->sendFields(&list)))
 
64
    if (! (res= session->getClient()->sendFields(&list)))
64
65
      is_result_set_started= 1;
65
66
    return res;
66
67
  }
99
100
    */
100
101
    plugin::TransactionalStorageEngine::releaseTemporaryLatches(session);
101
102
 
102
 
    List_iterator_fast<Item> li(items);
 
103
    List<Item>::iterator li(items.begin());
103
104
    char buff[MAX_FIELD_WIDTH];
104
105
    String buffer(buff, sizeof(buff), &my_charset_bin);
105
106
 
106
107
    Item *item;
107
108
    while ((item=li++))
108
109
    {
109
 
      if (item->send(session->client, &buffer))
 
110
      if (item->send(session->getClient(), &buffer))
110
111
      {
111
112
        my_message(ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES), MYF(0));
112
113
        break;
119
120
    session->sent_row_count++;
120
121
    if (session->is_error())
121
122
      return true;
122
 
    return session->client->flush();
 
123
    return session->getClient()->flush();
123
124
  }
124
125
};
125
126