~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_send.h

  • Committer: Brian Aker
  • Date: 2010-12-22 16:40:49 UTC
  • mto: (2022.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2025.
  • Revision ID: brian@tangent.org-20101222164049-vjbi97jztrlr01l1
Encapsulate client call. Also remove the need to call current_session when
looking for privs for processlist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
  bool send_fields(List<Item> &list)
61
61
  {
62
62
    bool res;
63
 
    if (! (res= session->client->sendFields(&list)))
 
63
    if (! (res= session->getClient()->sendFields(&list)))
64
64
      is_result_set_started= 1;
65
65
    return res;
66
66
  }
106
106
    Item *item;
107
107
    while ((item=li++))
108
108
    {
109
 
      if (item->send(session->client, &buffer))
 
109
      if (item->send(session->getClient(), &buffer))
110
110
      {
111
111
        my_message(ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES), MYF(0));
112
112
        break;
119
119
    session->sent_row_count++;
120
120
    if (session->is_error())
121
121
      return true;
122
 
    return session->client->flush();
 
122
    return session->getClient()->flush();
123
123
  }
124
124
};
125
125