List:Commits« Previous MessageNext Message »
From:Nirbhay Choubey Date:October 10 2012 12:23pm
Subject:bzr push into mysql-5.6 branch (nirbhay.choubey:4446 to 4447) Bug#14722862
View as plain text  
 4447 Nirbhay Choubey	2012-10-10
      Bug#14722862 : MYSQL_CLIENT_TEST_EMBEDDED FAILS WITH
                     SEGMENTATION FAULT
      
      mysql_client_test framework's print_error() was
      referring to an invalid mysql handle (a possible
      typo), which caused the segfault.
      
      Fixed by correcting the handle.

    modified:
      tests/mysql_client_fw.c
 4446 Joerg Bruehe	2012-10-10 [merge]
      Merge the fix for bug#12794345 into main.

    added:
      scripts/mysql_security_commands.sql
    modified:
      cmake/info_macros.cmake.in
      scripts/CMakeLists.txt
      scripts/mysql_install_db.pl.in
      support-files/mysql.spec.sh
=== modified file 'tests/mysql_client_fw.c'
--- a/tests/mysql_client_fw.c	2012-07-26 18:46:34 +0000
+++ b/tests/mysql_client_fw.c	2012-10-10 12:21:38 +0000
@@ -212,8 +212,8 @@ static void print_error(MYSQL *l_mysql,
  {
    if (l_mysql && mysql_errno(l_mysql))
    {
-     if (mysql->server_version)
-     fprintf(stdout, "\n [MySQL-%s]", mysql->server_version);
+     if (l_mysql->server_version)
+     fprintf(stdout, "\n [MySQL-%s]", l_mysql->server_version);
      else
      fprintf(stdout, "\n [MySQL]");
      fprintf(stdout, "[%d] %s\n", mysql_errno(l_mysql), mysql_error(l_mysql));

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.6 branch (nirbhay.choubey:4446 to 4447) Bug#14722862Nirbhay Choubey10 Oct