~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/session_dictionary/variables.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024212354-j32gbc2sbsw0985q
Use str_ref

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"
 
23
#include <plugin/session_dictionary/dictionary.h>
 
24
#include <drizzled/user_var_entry.h>
24
25
 
25
26
#define LARGEST_USER_VARIABLE_NAME 128
26
27
 
53
54
 
54
55
    bool null_value;
55
56
    uint32_t decimals= 4; // arbitrary
56
 
    (*iter).second->val_str(&null_value, &tmp, decimals);
 
57
    iter->second->val_str(&null_value, &tmp, decimals);
57
58
 
58
59
 
59
60
    // VARIABLE_NAME
60
 
    push((*iter).first);
 
61
    push(iter->first);
61
62
    
62
63
    // VARIABLE_VALUE 
63
64
    if (null_value)