MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magne Mahre Date:April 30 2009 4:57pm
Subject:bzr commit into mysql-6.0-falcon branch (magne.mahre:2770) Bug#42461
View as plain text  
#At file:///data/z/mysql-6.0-runtime-fix42461/ based on revid:magne.mahre@stripped

 2770 Magne Mahre	2009-04-30
      Bug #42461 Plugins: st_mysql_lex_string differs between plugin.h and m_string.h
            
      include/m_string.h and include/mysql/plugin.h had different definition
      of the type of the length attribute (size_t vs. unsigned int).
            
      Decided to use size_t as the common type, as this is the type used
      in the Single Unix Specification everywhere a string's length is
      given.
            
      No specific test case is added, as several existing test cases use
      MYSQL_LEX_STRING from plugins (in particular the maria suite).

    modified:
      include/mysql/plugin.h
      include/mysql/plugin.h.pp
=== modified file 'include/mysql/plugin.h'
--- a/include/mysql/plugin.h	2009-04-15 08:35:38 +0000
+++ b/include/mysql/plugin.h	2009-04-30 16:57:43 +0000
@@ -44,7 +44,7 @@ class Item;
 struct st_mysql_lex_string
 {
   char *str;
-  unsigned int length;
+  size_t length;
 };
 #endif /* _m_string_h */
 typedef struct st_mysql_lex_string MYSQL_LEX_STRING;

=== modified file 'include/mysql/plugin.h.pp'
--- a/include/mysql/plugin.h.pp	2009-04-14 12:42:21 +0000
+++ b/include/mysql/plugin.h.pp	2009-04-30 16:57:43 +0000
@@ -3,7 +3,7 @@ typedef struct st_mysql MYSQL;
 struct st_mysql_lex_string
 {
   char *str;
-  unsigned int length;
+  size_t length;
 };
 typedef struct st_mysql_lex_string MYSQL_LEX_STRING;
 struct st_mysql_xid {


Attachment: [text/bzr-bundle] bzr/magne.mahre@sun.com-20090430165743-53d7ngf06lga6bob.bundle
Thread
bzr commit into mysql-6.0-falcon branch (magne.mahre:2770) Bug#42461Magne Mahre30 Apr