~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/eval/eval0eval.cc

  • Committer: Monty Taylor
  • Date: 2010-12-24 00:04:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101224000405-pbeo7g3qs2s3xr7c
A stab at C++-izing InnoDB.

Show diffs side-by-side

added added

removed removed

Lines of Context:
787
787
        func_node_t*    func_node)      /*!< in: function node */
788
788
{
789
789
        que_node_t*     arg;
790
 
        ulint           class;
 
790
        ulint           func_class;
791
791
        ulint           func;
792
792
 
793
793
        ut_ad(que_node_get_type(func_node) == QUE_NODE_FUNC);
794
794
 
795
 
        class = func_node->class;
 
795
        func_class = func_node->func_class;
796
796
        func = func_node->func;
797
797
 
798
798
        arg = func_node->args;
805
805
                values, except for eval_cmp and notfound */
806
806
 
807
807
                if (dfield_is_null(que_node_get_val(arg))
808
 
                    && (class != PARS_FUNC_CMP)
 
808
                    && (func_class != PARS_FUNC_CMP)
809
809
                    && (func != PARS_NOTFOUND_TOKEN)
810
810
                    && (func != PARS_PRINTF_TOKEN)) {
811
811
                        ut_error;
814
814
                arg = que_node_get_next(arg);
815
815
        }
816
816
 
817
 
        if (class == PARS_FUNC_CMP) {
 
817
        if (func_class == PARS_FUNC_CMP) {
818
818
                eval_cmp(func_node);
819
 
        } else if (class == PARS_FUNC_ARITH) {
 
819
        } else if (func_class == PARS_FUNC_ARITH) {
820
820
                eval_arith(func_node);
821
 
        } else if (class == PARS_FUNC_AGGREGATE) {
 
821
        } else if (func_class == PARS_FUNC_AGGREGATE) {
822
822
                eval_aggregate(func_node);
823
 
        } else if (class == PARS_FUNC_PREDEFINED) {
 
823
        } else if (func_class == PARS_FUNC_PREDEFINED) {
824
824
 
825
825
                if (func == PARS_NOTFOUND_TOKEN) {
826
826
                        eval_notfound(func_node);
840
840
                        eval_predefined(func_node);
841
841
                }
842
842
        } else {
843
 
                ut_ad(class == PARS_FUNC_LOGICAL);
 
843
                ut_ad(func_class == PARS_FUNC_LOGICAL);
844
844
 
845
845
                eval_logical(func_node);
846
846
        }