~ubuntu-branches/ubuntu/gutsy/mysql-dfsg-5.0/gutsy

« back to all changes in this revision

Viewing changes to client/sql_string.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-03 09:43:01 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070403094301-fnjhfr59hu72pvtg
Tags: 5.0.38-0ubuntu1
* Package the Enterprise version again (.37 was a community version), since
  Debian and we have always done so. This brings in a few more bug fixes and
  makes functional derivations less likely.
* debian/README.Maintainer: Add pointer to upstream download URL, since it
  is very hard to find the Enterprise versions.
* Disable 33_scripts__mysql_create_system_tables__no_test.dpatch, since that
  script was removed upstream.
* debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch: Adapted to
  changed formatting in new upstream version.
* Remove debian/patches/86_PATH_MAX.dpatch, fixed upstream.
* Add debian/patches/90_org_tables_definition.dpatch: Fix local variable
  declaration in libmysqld/sql_parse.cc to fix compilation with
  EMBEDDED_LIBRARY.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define NOT_FIXED_DEC                   31
24
24
#endif
25
25
 
 
26
#define STRING_WITH_LEN(X)  ((const char*) X), ((uint) (sizeof(X) - 1))
 
27
 
26
28
class String;
27
29
int sortcmp(const String *a,const String *b, CHARSET_INFO *cs);
28
30
String *copy_if_not_alloced(String *a,String *b,uint32 arg_length);
76
78
  { /* never called */ }
77
79
  ~String() { free(); }
78
80
 
79
 
  inline void set_charset(CHARSET_INFO *charset) { str_charset= charset; }
 
81
  inline void set_charset(CHARSET_INFO *charset_arg)
 
82
  { str_charset= charset_arg; }
80
83
  inline CHARSET_INFO *charset() const { return str_charset; }
81
84
  inline uint32 length() const { return str_length;}
82
85
  inline uint32 alloced_length() const { return Alloced_length;}
83
86
  inline char& operator [] (uint32 i) const { return Ptr[i]; }
84
87
  inline void length(uint32 len) { str_length=len ; }
85
88
  inline bool is_empty() { return (str_length == 0); }
 
89
  inline void mark_as_const() { Alloced_length= 0;}
86
90
  inline const char *ptr() const { return Ptr; }
87
91
  inline char *c_ptr()
88
92
  {