mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fixed a bug in pager in mysql client
client/mysql.cc: Fixed a bug in pager
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <violite.h>
|
#include <violite.h>
|
||||||
|
|
||||||
const char *VER= "12.10";
|
const char *VER= "12.11";
|
||||||
|
|
||||||
/* Don't try to make a nice table if the data is too big */
|
/* Don't try to make a nice table if the data is too big */
|
||||||
#define MAX_COLUMN_LENGTH 1024
|
#define MAX_COLUMN_LENGTH 1024
|
||||||
@@ -1487,7 +1487,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||||||
|
|
||||||
static void init_pager()
|
static void init_pager()
|
||||||
{
|
{
|
||||||
#if !defined( __WIN__) && !defined( OS2) && (!defined(HAVE_mit_thread) && defined(THREAD))
|
#if !defined( __WIN__) && !defined( OS2) && !(defined(HAVE_mit_thread) && defined(THREAD))
|
||||||
if (!opt_nopager)
|
if (!opt_nopager)
|
||||||
{
|
{
|
||||||
if (!(PAGER= popen(pager, "w")))
|
if (!(PAGER= popen(pager, "w")))
|
||||||
@@ -1503,7 +1503,7 @@ static void init_pager()
|
|||||||
|
|
||||||
static void end_pager()
|
static void end_pager()
|
||||||
{
|
{
|
||||||
#if !defined( __WIN__) && !defined( OS2) && (!defined(HAVE_mit_thread) && defined(THREAD))
|
#if !defined( __WIN__) && !defined( OS2) && !(defined(HAVE_mit_thread) && defined(THREAD))
|
||||||
if (!opt_nopager)
|
if (!opt_nopager)
|
||||||
pclose(PAGER);
|
pclose(PAGER);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user