~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_send.h

  • Committer: Brian Aker
  • Date: 2011-02-12 08:10:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212081017-7793i41ybt7gp5ty
More removal of session from includes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
 
21
 
#pragma once
 
21
#ifndef DRIZZLED_SELECT_SEND_H
 
22
#define DRIZZLED_SELECT_SEND_H
22
23
 
23
24
#include <drizzled/plugin/client.h>
24
25
#include <drizzled/plugin/query_cache.h>
25
26
#include <drizzled/plugin/transactional_storage_engine.h>
26
 
#include <drizzled/select_result.h>
27
 
#include <drizzled/sql_lex.h>
28
 
#include <drizzled/open_tables_state.h>
29
27
 
30
 
namespace drizzled {
 
28
namespace drizzled
 
29
{
31
30
 
32
31
class select_send :public select_result {
33
32
  /**
48
47
    plugin::TransactionalStorageEngine::releaseTemporaryLatches(session);
49
48
 
50
49
    /* Unlock tables before sending packet to gain some speed */
51
 
    if (session->open_tables.lock)
 
50
    if (session->lock)
52
51
    {
53
 
      session->unlockTables(session->open_tables.lock);
54
 
      session->open_tables.lock= 0;
 
52
      session->unlockTables(session->lock);
 
53
      session->lock= 0;
55
54
    }
56
55
    session->my_eof();
57
56
    is_result_set_started= 0;
100
99
    */
101
100
    plugin::TransactionalStorageEngine::releaseTemporaryLatches(session);
102
101
 
103
 
    List<Item>::iterator li(items.begin());
 
102
    List_iterator_fast<Item> li(items);
104
103
    char buff[MAX_FIELD_WIDTH];
105
104
    String buffer(buff, sizeof(buff), &my_charset_bin);
106
105
 
126
125
 
127
126
} /* namespace drizzled */
128
127
 
 
128
#endif /* DRIZZLED_SELECT_SEND_H */