~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

  • Committer: Monty Taylor
  • Date: 2010-11-25 01:53:19 UTC
  • mto: (1953.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1955.
  • Revision ID: mordred@inaugust.com-20101125015319-ia85msn25uemopgc
Re-enabled -Wformat and then cleaned up the carnage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    case REAL_RESULT:
89
89
      max_length= DBL_DIG + 8;
90
90
      break;
91
 
 
92
91
    case INT_RESULT:
93
92
      max_length= MAX_BIGINT_WIDTH;
94
93
      decimals=0;
96
95
    case STRING_RESULT:
97
96
      max_length= MAX_BLOB_WIDTH;
98
97
      break;
99
 
 
100
98
    case DECIMAL_RESULT:
101
99
      max_length= DECIMAL_MAX_STR_LENGTH;
102
100
      decimals= DECIMAL_MAX_SCALE;
103
101
      break;
104
 
 
105
102
    case ROW_RESULT:                            // Keep compiler happy
 
103
    default:
106
104
      assert(0);
107
105
      break;
108
106
    }