~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-07-12 20:42:47 UTC
  • mfrom: (134.1.2 drizzle)
  • Revision ID: brian@tangent.org-20080712204247-25xybfz5mgd050zo
Merge Mark's UDF Example

Show diffs side-by-side

added added

removed removed

Lines of Context:
3797
3797
function_call_generic:
3798
3798
          IDENT_sys '('
3799
3799
          {
3800
 
#ifdef HAVE_DLOPEN
3801
3800
            udf_func *udf= 0;
3802
3801
            LEX *lex= Lex;
3803
3802
            if (using_udf_functions &&
3812
3811
            }
3813
3812
            /* Temporary placing the result of find_udf in $3 */
3814
3813
            $<udf>$= udf;
3815
 
#endif
3816
3814
          }
3817
3815
          opt_udf_expr_list ')'
3818
3816
          {
3836
3834
            }
3837
3835
            else
3838
3836
            {
3839
 
#ifdef HAVE_DLOPEN
3840
3837
              /* Retrieving the result of find_udf */
3841
3838
              udf_func *udf= $<udf>3;
3842
 
 
 
3839
              if (udf)
3843
3840
              {
3844
3841
                if (udf->type == UDFTYPE_AGGREGATE)
3845
3842
                {
3848
3845
 
3849
3846
                item= Create_udf_func::s_singleton.create(thd, udf, $4);
3850
3847
              }
3851
 
#endif
3852
3848
            }
3853
3849
 
3854
3850
            if (! ($$= item))