~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_strfunc.h

  • 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:
258
258
  static char *alloc(THD *thd, const char *password);
259
259
};
260
260
 
261
 
 
262
 
/*
263
 
  Item_func_old_password -- PASSWORD() implementation used in MySQL 3.21 - 4.0
264
 
  compatibility mode. This item is created in sql_yacc.yy when
265
 
  'old_passwords' session variable is set, and to handle OLD_PASSWORD()
266
 
  function.
267
 
*/
268
 
 
269
 
class Item_func_old_password :public Item_str_func
270
 
{
271
 
  char tmp_value[SCRAMBLED_PASSWORD_CHAR_LENGTH_323+1];
272
 
public:
273
 
  Item_func_old_password(Item *a) :Item_str_func(a) {}
274
 
  String *val_str(String *str);
275
 
  void fix_length_and_dec() { max_length= SCRAMBLED_PASSWORD_CHAR_LENGTH_323; } 
276
 
  const char *func_name() const { return "old_password"; }
277
 
  static char *alloc(THD *thd, const char *password);
278
 
};
279
 
 
280
 
 
281
261
class Item_func_des_encrypt :public Item_str_func
282
262
{
283
263
  String tmp_value;