• unknown's avatar
    fix for bug #12744 (MYSQL_STMT operations cause seg fault after connection reset) · 1e686ae7
    unknown authored
    
    libmysql/libmysql.c:
      stmt->mysql could be 0x0 if the connection has failed between prepare and execute
      or any other operation. thus if the user decides to use mysql_stmt_reset()
      we should not segfault.
    tests/mysql_client_test.c:
      test for bug #12744 (MYSQL_STMT operations cause seg fault after connection reset)
    1e686ae7
libmysql.c 128 KB