~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_yacc.yy

  • Committer: Stewart Smith
  • Date: 2008-07-08 09:49:06 UTC
  • mto: (54.1.6 drizzle-smack)
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: stewart@flamingspork.com-20080708094906-v66rmocdte3txwxv
remove old_password support from server (patch 1)

removes OLD_PASSWORD function, variable, parser bits.

need to still remove bits from protocol

Show diffs side-by-side

added added

removed removed

Lines of Context:
714
714
%token  NVARCHAR_SYM
715
715
%token  OFFLINE_SYM
716
716
%token  OFFSET_SYM
717
 
%token  OLD_PASSWORD
718
717
%token  ON                            /* SQL-2003-R */
719
718
%token  ONE_SHOT_SYM
720
719
%token  ONE_SYM
3836
3835
          { $$= new (YYTHD->mem_root) Item_func_microsecond($3); }
3837
3836
        | MOD_SYM '(' expr ',' expr ')'
3838
3837
          { $$ = new (YYTHD->mem_root) Item_func_mod( $3, $5); }
3839
 
        | OLD_PASSWORD '(' expr ')'
3840
 
          { $$=  new (YYTHD->mem_root) Item_func_old_password($3); }
3841
3838
        | PASSWORD '(' expr ')'
3842
3839
          {
3843
3840
            THD *thd= YYTHD;
3844
3841
            Item* i1;
3845
 
            if (thd->variables.old_passwords)
3846
 
              i1= new (thd->mem_root) Item_func_old_password($3);
3847
 
            else
3848
 
              i1= new (thd->mem_root) Item_func_password($3);
 
3842
            i1= new (thd->mem_root) Item_func_password($3);
3849
3843
            $$= i1;
3850
3844
          }
3851
3845
        | QUARTER_SYM '(' expr ')'
6711
6705
        | NVARCHAR_SYM             {}
6712
6706
        | OFFLINE_SYM              {}
6713
6707
        | OFFSET_SYM               {}
6714
 
        | OLD_PASSWORD             {}
6715
6708
        | ONE_SHOT_SYM             {}
6716
6709
        | ONE_SYM                  {}
6717
6710
        | ONLINE_SYM               {}