Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
469fce64
Commit
469fce64
authored
Nov 18, 2000
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge narttu:/my/bk/mysql into prima.mysql.com:/home/my/bk/mysql
parents
a239fea7
652286e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
client/mysql.cc
client/mysql.cc
+16
-6
No files found.
client/mysql.cc
View file @
469fce64
...
@@ -109,6 +109,8 @@ static HashTable ht;
...
@@ -109,6 +109,8 @@ static HashTable ht;
enum
enum_info_type
{
INFO_INFO
,
INFO_ERROR
,
INFO_RESULT
};
enum
enum_info_type
{
INFO_INFO
,
INFO_ERROR
,
INFO_RESULT
};
typedef
enum
enum_info_type
INFO_TYPE
;
typedef
enum
enum_info_type
INFO_TYPE
;
const
char
*
VER
=
"11.4"
;
static
MYSQL
mysql
;
/* The connection */
static
MYSQL
mysql
;
/* The connection */
static
bool
info_flag
=
0
,
ignore_errors
=
0
,
wait_flag
=
0
,
quick
=
0
,
static
bool
info_flag
=
0
,
ignore_errors
=
0
,
wait_flag
=
0
,
quick
=
0
,
connected
=
0
,
opt_raw_data
=
0
,
unbuffered
=
0
,
output_tables
=
0
,
connected
=
0
,
opt_raw_data
=
0
,
unbuffered
=
0
,
output_tables
=
0
,
...
@@ -138,6 +140,7 @@ const char *default_dbug_option="d:t:o,/tmp/mysql.trace";
...
@@ -138,6 +140,7 @@ const char *default_dbug_option="d:t:o,/tmp/mysql.trace";
void
tee_fprintf
(
FILE
*
file
,
const
char
*
fmt
,
...);
void
tee_fprintf
(
FILE
*
file
,
const
char
*
fmt
,
...);
void
tee_fputs
(
const
char
*
s
,
FILE
*
file
);
void
tee_fputs
(
const
char
*
s
,
FILE
*
file
);
void
tee_puts
(
const
char
*
s
,
FILE
*
file
);
void
tee_puts
(
const
char
*
s
,
FILE
*
file
);
void
tee_putc
(
int
c
,
FILE
*
file
);
/* The names of functions that actually do the manipulation. */
/* The names of functions that actually do the manipulation. */
static
int
get_options
(
int
argc
,
char
**
argv
);
static
int
get_options
(
int
argc
,
char
**
argv
);
static
int
com_quit
(
String
*
str
,
char
*
),
static
int
com_quit
(
String
*
str
,
char
*
),
...
@@ -437,8 +440,8 @@ CHANGEABLE_VAR changeable_vars[] = {
...
@@ -437,8 +440,8 @@ CHANGEABLE_VAR changeable_vars[] = {
static
void
usage
(
int
version
)
static
void
usage
(
int
version
)
{
{
printf
(
"%s Ver
11.3
Distrib %s, for %s (%s)
\n
"
,
printf
(
"%s Ver
%s
Distrib %s, for %s (%s)
\n
"
,
my_progname
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
my_progname
,
VER
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
if
(
version
)
if
(
version
)
return
;
return
;
puts
(
"Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB"
);
puts
(
"Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB"
);
...
@@ -1637,7 +1640,7 @@ safe_put_field(const char *pos,ulong length)
...
@@ -1637,7 +1640,7 @@ safe_put_field(const char *pos,ulong length)
if
(
use_mb
(
default_charset_info
)
&&
if
(
use_mb
(
default_charset_info
)
&&
(
l
=
my_ismbchar
(
default_charset_info
,
pos
,
end
)))
{
(
l
=
my_ismbchar
(
default_charset_info
,
pos
,
end
)))
{
while
(
l
--
)
while
(
l
--
)
tee_
fputs
((
const
char
*
)
*
pos
++
,
PAGER
);
tee_
putc
(
*
pos
++
,
PAGER
);
pos
--
;
pos
--
;
continue
;
continue
;
}
}
...
@@ -1651,7 +1654,7 @@ safe_put_field(const char *pos,ulong length)
...
@@ -1651,7 +1654,7 @@ safe_put_field(const char *pos,ulong length)
else
if
(
*
pos
==
'\\'
)
else
if
(
*
pos
==
'\\'
)
tee_fputs
(
"
\\\\
"
,
PAGER
);
tee_fputs
(
"
\\\\
"
,
PAGER
);
else
else
tee_
fputs
(
pos
,
PAGER
);
tee_
putc
(
*
pos
,
PAGER
);
}
}
}
}
}
}
...
@@ -1867,7 +1870,7 @@ com_print(String *buffer,char *line __attribute__((unused)))
...
@@ -1867,7 +1870,7 @@ com_print(String *buffer,char *line __attribute__((unused)))
tee_puts
(
"--------------"
,
stdout
);
tee_puts
(
"--------------"
,
stdout
);
(
void
)
tee_fputs
(
buffer
->
c_ptr
(),
stdout
);
(
void
)
tee_fputs
(
buffer
->
c_ptr
(),
stdout
);
if
(
!
buffer
->
length
()
||
(
*
buffer
)[
buffer
->
length
()
-
1
]
!=
'\n'
)
if
(
!
buffer
->
length
()
||
(
*
buffer
)[
buffer
->
length
()
-
1
]
!=
'\n'
)
tee_
fputs
(
"
\n
"
,
stdout
);
tee_
putc
(
'\n'
,
stdout
);
tee_puts
(
"--------------
\n
"
,
stdout
);
tee_puts
(
"--------------
\n
"
,
stdout
);
return
0
;
/* If empty buffer */
return
0
;
/* If empty buffer */
}
}
...
@@ -2174,7 +2177,7 @@ com_status(String *buffer __attribute__((unused)),
...
@@ -2174,7 +2177,7 @@ com_status(String *buffer __attribute__((unused)),
}
}
if
(
status
)
if
(
status
)
{
{
tee_
fputs
(
"
\n
"
,
stdout
);
tee_
putc
(
'\n'
,
stdout
);
tee_puts
(
status
,
stdout
);
tee_puts
(
status
,
stdout
);
}
}
}
}
...
@@ -2295,6 +2298,13 @@ void tee_puts(const char *s, FILE *file)
...
@@ -2295,6 +2298,13 @@ void tee_puts(const char *s, FILE *file)
}
}
}
}
void
tee_putc
(
int
c
,
FILE
*
file
)
{
putc
(
c
,
file
);
if
(
opt_outfile
)
putc
(
c
,
OUTFILE
);
}
#ifdef __WIN__
#ifdef __WIN__
#include <time.h>
#include <time.h>
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment