~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/execute.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-10 17:58:23 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110810175823-s0tm7bv5qlg8uyaf
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
bool Execute::val_bool()
31
31
{
32
32
  drizzled::String *res= args[0]->val_str(&_res);
33
 
 
34
33
  if (not res or not res->length())
35
34
  {
36
35
    null_value= true;
37
36
    return false;
38
37
  }
39
 
 
40
 
  execute.run(res->c_str(), res->length());
41
 
 
 
38
  execute.run(*res);
42
39
  null_value= false;
43
 
 
44
40
  return true;
45
41
}
46
42