~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_func.cc

  • Committer: Brian Aker
  • Date: 2008-08-20 03:21:20 UTC
  • Revision ID: brian@tangent.org-20080820032120-lv3c5pu3owhex19j
flag cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
599
599
void Item_func::signal_divide_by_null()
600
600
{
601
601
  THD *thd= current_thd;
602
 
  if (thd->variables.sql_mode & MODE_ERROR_FOR_DIVISION_BY_ZERO)
603
 
    push_warning(thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR, ER_DIVISION_BY_ZERO,
604
 
                 ER(ER_DIVISION_BY_ZERO));
 
602
  push_warning(thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR, ER_DIVISION_BY_ZERO, ER(ER_DIVISION_BY_ZERO));
605
603
  null_value= 1;
606
604
}
607
605