~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/session_dictionary/variables.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
 
23
 
#include <plugin/session_dictionary/dictionary.h>
24
 
#include <drizzled/user_var_entry.h>
 
23
#include "plugin/session_dictionary/dictionary.h"
25
24
 
26
25
#define LARGEST_USER_VARIABLE_NAME 128
27
26
 
54
53
 
55
54
    bool null_value;
56
55
    uint32_t decimals= 4; // arbitrary
57
 
    iter->second->val_str(&null_value, &tmp, decimals);
 
56
    (*iter).second->val_str(&null_value, &tmp, decimals);
58
57
 
59
58
 
60
59
    // VARIABLE_NAME
61
 
    push(iter->first);
 
60
    push((*iter).first);
62
61
    
63
62
    // VARIABLE_VALUE 
64
63
    if (null_value)