~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/execute.cc

  • Committer: Mark Atwood
  • Date: 2011-08-01 05:22:14 UTC
  • mfrom: (1919.3.53 drizzle_pbms)
  • Revision ID: me@mark.atwood.name-20110801052214-3wdsx3xgld6b5v4f
mergeĀ lp:~barry-leslie/drizzle/drizzle_pbms

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
 
33
34
  if (not res or not res->length())
34
35
  {
35
36
    null_value= true;
36
37
    return false;
37
38
  }
38
 
  execute.run(*res);
 
39
 
 
40
  execute.run(res->c_str(), res->length());
 
41
 
39
42
  null_value= false;
 
43
 
40
44
  return true;
41
45
}
42
46