~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-07-28 03:45:43 UTC
  • mfrom: (212.1.8 codestyle)
  • Revision ID: brian@tangent.org-20080728034543-qulvxdig8powjsj1
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
  */
254
254
  rw_rdlock(var_mutex);
255
255
  save_client_capabilities= thd->client_capabilities;
256
 
  thd->client_capabilities|= CLIENT_MULTI_QUERIES;
 
256
  thd->client_capabilities|= CLIENT_MULTI_STATEMENTS;
257
257
  /*
258
258
    We don't need return result of execution to client side.
259
259
    To forbid this we should set thd->net.vio to 0.
3134
3134
    */
3135
3135
    if (default_value->type() == Item::FUNC_ITEM && 
3136
3136
        !(((Item_func*)default_value)->functype() == Item_func::NOW_FUNC &&
3137
 
         type == MYSQL_TYPE_TIMESTAMP))
 
3137
         type == DRIZZLE_TYPE_TIMESTAMP))
3138
3138
    {
3139
3139
      my_error(ER_INVALID_DEFAULT, MYF(0), field_name->str);
3140
3140
      return(1);
3156
3156
    }
3157
3157
  }
3158
3158
 
3159
 
  if (on_update_value && type != MYSQL_TYPE_TIMESTAMP)
 
3159
  if (on_update_value && type != DRIZZLE_TYPE_TIMESTAMP)
3160
3160
  {
3161
3161
    my_error(ER_INVALID_ON_UPDATE, MYF(0), field_name->str);
3162
3162
    return(1);