~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • Committer: Brian Aker
  • Date: 2008-08-03 22:27:54 UTC
  • mfrom: (236.1.66 codestyle)
  • Revision ID: brian@tangent.org-20080803222754-yhkw8plul06oqvhe
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1761
1761
    killed_state killed_val; /* to cache the volatile 'killed' */
1762
1762
    return (killed_val= killed) != KILL_BAD_DATA ? killed_val : 0;
1763
1763
  }
1764
 
  inline void send_kill_message() const
1765
 
  {
1766
 
    int err= killed_errno();
1767
 
    if (err)
1768
 
      my_message(err, ER(err), MYF(0));
1769
 
  }
 
1764
  void send_kill_message() const;
1770
1765
  /* return true if we will abort query if we make a warning now */
1771
1766
  inline bool really_abort_on_warning()
1772
1767
  {
1887
1882
    allocate memory for a deep copy: current database may be freed after
1888
1883
    a statement is parsed but before it's executed.
1889
1884
  */
1890
 
  bool copy_db_to(char **p_db, size_t *p_db_length)
1891
 
  {
1892
 
    if (db == NULL)
1893
 
    {
1894
 
      my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
1895
 
      return true;
1896
 
    }
1897
 
    *p_db= strmake(db, db_length);
1898
 
    *p_db_length= db_length;
1899
 
    return false;
1900
 
  }
 
1885
  bool copy_db_to(char **p_db, size_t *p_db_length);
1901
1886
  thd_scheduler scheduler;
1902
1887
 
1903
1888
public: