]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- fixes crash with INSERT DELAYED auto/ac/mysql-5_0_15-5
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Nov 2005 00:16:59 +0000 (00:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-bug-13707.patch -> 1.1

mysql-bug-13707.patch [new file with mode: 0644]

diff --git a/mysql-bug-13707.patch b/mysql-bug-13707.patch
new file mode 100644 (file)
index 0000000..20d0004
--- /dev/null
@@ -0,0 +1,34 @@
+ChangeSet
+  1.2028 05/10/25 15:23:49 ingo@stripped +1 -0
+  Bug#13707 - Server crash with INSERT DELAYED on MyISAM table
+  Initialized 'ptr' for a newly instantiated varstring field.
+  This is required by INSERT DELAYED.
+
+  sql/field.cc
+    1.286 05/10/25 15:23:41 ingo@stripped +10 -3
+    Bug#13707 - Server crash with INSERT DELAYED on MyISAM table
+    Initialized 'ptr' for a newly instantiated varstring field.
+    This is required by INSERT DELAYED.
+
+--- 1.285/sql/field.cc  2005-10-13 23:04:47 +02:00
++++ 1.286/sql/field.cc  2005-10-25 15:23:41 +02:00
+@@ -6201,9 +6201,16 @@
+     This is done to ensure that ALTER TABLE will convert old VARCHAR fields
+     to now VARCHAR fields.
+   */
+-  return new Field_varstring(field_length, maybe_null(),
+-                             field_name, new_table,
+-                             charset());
++  Field *new_field= new Field_varstring(field_length, maybe_null(),
++                                        field_name, new_table,
++                                        charset());
++  /*
++    delayed_insert::get_local_table() needs a ptr copied from old table.
++    This is what other new_field() methods do too. The above method of
++    Field_varstring sets ptr to NULL.
++  */
++  new_field->ptr= ptr;
++  return new_field;
+ }
+ /****************************************************************************
This page took 0.547562 seconds and 4 git commands to generate.