~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/compression/uncompressed_length.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/plugin/function.h>
22
22
#include <drizzled/function/math/int.h>
23
23
#include "plugin/compression/uncompressed_length.h"
25
25
#include <string>
26
26
 
27
27
using namespace std;
28
 
using namespace drizzled;
29
28
 
30
29
 
31
30
int64_t Item_func_uncompressed_length::val_int()
35
34
  if (!res)
36
35
  {
37
36
    null_value=1;
38
 
    return 0;
 
37
    return 0; /* purecov: inspected */
39
38
  }
40
39
  null_value=0;
41
40
  if (res->is_empty()) return 0;