~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Olaf van der Spek
  • Date: 2011-10-14 11:07:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2438.
  • Revision ID: olafvdspek@gmail.com-20111014110759-u96cbhrthqf416te
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
4927
4927
          }
4928
4928
        | HEX_NUM
4929
4929
          {
4930
 
            Item *tmp= new Item_hex_string($1.data(), $1.size());
 
4930
            Item *tmp= new Item_hex_string($1);
4931
4931
            /*
4932
4932
              it is OK only emulate fix_fields, because we need only
4933
4933
              value of constant
4968
4968
          }
4969
4969
        | FALSE_SYM { $$= new drizzled::item::False(); }
4970
4970
        | TRUE_SYM { $$= new drizzled::item::True(); }
4971
 
        | HEX_NUM { $$ = new Item_hex_string($1.data(), $1.size());}
 
4971
        | HEX_NUM { $$ = new Item_hex_string($1);}
4972
4972
        | BIN_NUM { $$= new Item_bin_string($1.data(), $1.size()); }
4973
4973
        | DATE_SYM text_literal { $$ = $2; }
4974
4974
        | TIMESTAMP_SYM text_literal { $$ = $2; }
4976
4976
 
4977
4977
integer_literal:
4978
4978
          text_literal { $$ = $1; }
4979
 
        | HEX_NUM { $$ = new Item_hex_string($1.data(), $1.size());}
 
4979
        | HEX_NUM { $$ = new Item_hex_string($1);}
4980
4980
        | BIN_NUM { $$= new Item_bin_string($1.data(), $1.size()); }
4981
4981
        | NUM_literal { $$ = $1; }
4982
4982
        | NULL_SYM