~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to sql/sql_show.cc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-11 18:47:32 UTC
  • mto: (2.1.2 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100511184732-jhn055kfhxze24kt
Tags: upstream-5.1.46
ImportĀ upstreamĀ versionĀ 5.1.46

Show diffs side-by-side

added added

removed removed

Lines of Context:
1991
1991
        pthread_mutex_unlock(&mysys_var->mutex);
1992
1992
 
1993
1993
      /* INFO */
 
1994
      /* Lock THD mutex that protects its data when looking at it. */
 
1995
      pthread_mutex_lock(&tmp->LOCK_thd_data);
1994
1996
      if (tmp->query())
1995
1997
      {
1996
1998
        table->field[7]->store(tmp->query(),
1998
2000
                                   tmp->query_length()), cs);
1999
2001
        table->field[7]->set_notnull();
2000
2002
      }
 
2003
      pthread_mutex_unlock(&tmp->LOCK_thd_data);
2001
2004
 
2002
2005
      if (schema_table_store_record(thd, table))
2003
2006
      {