~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_send.h

Added hook points and the interface for the Query Cache plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#ifndef DRIZZLED_SELECT_SEND_H
22
22
#define DRIZZLED_SELECT_SEND_H
 
23
#include <iostream>
23
24
 
24
25
#include <drizzled/plugin/client.h>
 
26
#include <drizzled/plugin/query_cache.h>
25
27
#include <drizzled/plugin/transactional_storage_engine.h>
26
28
 
27
29
namespace drizzled
111
113
        break;
112
114
      }
113
115
    }
 
116
    /* Insert this record to the Resultset into the cache */
 
117
    if (session->query_cache_key == "")
 
118
     plugin::QueryCache::insertRecordDo(session, items);
 
119
 
114
120
    session->sent_row_count++;
115
121
    if (session->is_error())
116
122
      return true;