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
23dc1a6b
Commit
23dc1a6b
authored
Nov 18, 2000
by
jani@prima.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge narttu:/my/bk/mysql into prima.mysql.com:/home/my/bk/mysql
parents
a9f734fd
a0188258
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 @
23dc1a6b
...
...
@@ -109,6 +109,8 @@ static HashTable ht;
enum
enum_info_type
{
INFO_INFO
,
INFO_ERROR
,
INFO_RESULT
};
typedef
enum
enum_info_type
INFO_TYPE
;
const
char
*
VER
=
"11.4"
;
static
MYSQL
mysql
;
/* The connection */
static
bool
info_flag
=
0
,
ignore_errors
=
0
,
wait_flag
=
0
,
quick
=
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";
void
tee_fprintf
(
FILE
*
file
,
const
char
*
fmt
,
...);
void
tee_fputs
(
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. */
static
int
get_options
(
int
argc
,
char
**
argv
);
static
int
com_quit
(
String
*
str
,
char
*
),
...
...
@@ -437,8 +440,8 @@ CHANGEABLE_VAR changeable_vars[] = {
static
void
usage
(
int
version
)
{
printf
(
"%s Ver
11.3
Distrib %s, for %s (%s)
\n
"
,
my_progname
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
printf
(
"%s Ver
%s
Distrib %s, for %s (%s)
\n
"
,
my_progname
,
VER
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
if
(
version
)
return
;
puts
(
"Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB"
);
...
...
@@ -1637,7 +1640,7 @@ safe_put_field(const char *pos,ulong length)
if
(
use_mb
(
default_charset_info
)
&&
(
l
=
my_ismbchar
(
default_charset_info
,
pos
,
end
)))
{
while
(
l
--
)
tee_
fputs
((
const
char
*
)
*
pos
++
,
PAGER
);
tee_
putc
(
*
pos
++
,
PAGER
);
pos
--
;
continue
;
}
...
...
@@ -1651,7 +1654,7 @@ safe_put_field(const char *pos,ulong length)
else
if
(
*
pos
==
'\\'
)
tee_fputs
(
"
\\\\
"
,
PAGER
);
else
tee_
fputs
(
pos
,
PAGER
);
tee_
putc
(
*
pos
,
PAGER
);
}
}
}
...
...
@@ -1867,7 +1870,7 @@ com_print(String *buffer,char *line __attribute__((unused)))
tee_puts
(
"--------------"
,
stdout
);
(
void
)
tee_fputs
(
buffer
->
c_ptr
(),
stdout
);
if
(
!
buffer
->
length
()
||
(
*
buffer
)[
buffer
->
length
()
-
1
]
!=
'\n'
)
tee_
fputs
(
"
\n
"
,
stdout
);
tee_
putc
(
'\n'
,
stdout
);
tee_puts
(
"--------------
\n
"
,
stdout
);
return
0
;
/* If empty buffer */
}
...
...
@@ -2174,7 +2177,7 @@ com_status(String *buffer __attribute__((unused)),
}
if
(
status
)
{
tee_
fputs
(
"
\n
"
,
stdout
);
tee_
putc
(
'\n'
,
stdout
);
tee_puts
(
status
,
stdout
);
}
}
...
...
@@ -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__
#include <time.h>
#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