~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

Show diffs side-by-side

added added

removed removed

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