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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2d7b3bad
Commit
2d7b3bad
authored
Jul 22, 2011
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge from mysql-5.1.
parents
2c1c172f
9bb51735
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
43 deletions
+23
-43
client/mysql.cc
client/mysql.cc
+2
-2
client/mysql_upgrade.c
client/mysql_upgrade.c
+1
-0
client/mysqladmin.cc
client/mysqladmin.cc
+2
-2
client/mysqlcheck.c
client/mysqlcheck.c
+1
-1
client/mysqldump.c
client/mysqldump.c
+3
-1
client/mysqlimport.c
client/mysqlimport.c
+4
-8
client/mysqlshow.c
client/mysqlshow.c
+1
-1
client/mysqltest.cc
client/mysqltest.cc
+1
-8
sql/gen_lex_hash.cc
sql/gen_lex_hash.cc
+7
-19
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
client/mysql.cc
View file @
2d7b3bad
...
...
@@ -1177,7 +1177,7 @@ int main(int argc,char *argv[])
mysql_thread_id
(
&
mysql
),
server_version_string
(
&
mysql
));
put_info
((
char
*
)
glob_buffer
.
ptr
(),
INFO_INFO
);
put_info
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
),
INFO_INFO
);
put_info
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
),
INFO_INFO
);
#ifdef HAVE_READLINE
initialize_readline
((
char
*
)
my_progname
);
...
...
@@ -1595,7 +1595,7 @@ static void usage(int version)
if
(
version
)
return
;
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
printf
(
"Usage: %s [OPTIONS] [database]
\n
"
,
my_progname
);
my_print_help
(
my_long_options
);
print_defaults
(
"my"
,
load_default_groups
);
...
...
client/mysql_upgrade.c
View file @
2d7b3bad
...
...
@@ -243,6 +243,7 @@ get_one_option(int optid, const struct my_option *opt,
switch
(
optid
)
{
case
'?'
:
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 2011"
));
printf
(
"%s Ver %s Distrib %s, for %s (%s)
\n
"
,
my_progname
,
VER
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 2010"
));
...
...
client/mysqladmin.cc
View file @
2d7b3bad
...
...
@@ -688,7 +688,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
case
ADMIN_VER
:
new_line
=
1
;
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
printf
(
"Server version
\t\t
%s
\n
"
,
mysql_get_server_info
(
mysql
));
printf
(
"Protocol version
\t
%d
\n
"
,
mysql_get_proto_info
(
mysql
));
printf
(
"Connection
\t\t
%s
\n
"
,
mysql_get_host_info
(
mysql
));
...
...
@@ -1086,7 +1086,7 @@ static void print_version(void)
static
void
usage
(
void
)
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
puts
(
"Administration program for the mysqld daemon."
);
printf
(
"Usage: %s [OPTIONS] command command....
\n
"
,
my_progname
);
my_print_help
(
my_long_options
);
...
...
client/mysqlcheck.c
View file @
2d7b3bad
...
...
@@ -224,7 +224,7 @@ static void print_version(void)
static
void
usage
(
void
)
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
puts
(
"This program can be used to CHECK (-c, -m, -C), REPAIR (-r), ANALYZE (-a),"
);
puts
(
"or OPTIMIZE (-o) tables. Some of the options (like -e or -q) can be"
);
puts
(
"used at the same time. Not all options are supported by all storage engines."
);
...
...
client/mysqldump.c
View file @
2d7b3bad
...
...
@@ -55,6 +55,8 @@
#include <welcome_copyright_notice.h>
/* ORACLE_WELCOME_COPYRIGHT_NOTICE */
#include <welcome_copyright_notice.h>
/* ORACLE_WELCOME_COPYRIGHT_NOTICE */
/* Exit codes */
#define EX_USAGE 1
...
...
@@ -596,7 +598,7 @@ static void short_usage_sub(void)
static
void
usage
(
void
)
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
puts
(
"Dumping structure and contents of MySQL databases and tables."
);
short_usage_sub
();
print_defaults
(
"my"
,
load_default_groups
);
...
...
client/mysqlimport.c
View file @
2d7b3bad
...
...
@@ -18,14 +18,8 @@
/*
** mysqlimport.c - Imports all given files
** into a table(s).
**
** *************************
** * *
** * AUTHOR: Monty & Jani *
** * DATE: June 24, 1997 *
** * *
** *************************
*/
#define IMPORT_VERSION "3.7"
#include "client_priv.h"
...
...
@@ -44,6 +38,8 @@ pthread_mutex_t counter_mutex;
pthread_cond_t
count_threshhold
;
#endif
#include <welcome_copyright_notice.h>
/* ORACLE_WELCOME_COPYRIGHT_NOTICE */
static
void
db_error_with_table
(
MYSQL
*
mysql
,
char
*
table
);
static
void
db_error
(
MYSQL
*
mysql
);
static
char
*
field_escape
(
char
*
to
,
const
char
*
from
,
uint
length
);
...
...
@@ -203,7 +199,7 @@ static void print_version(void)
static
void
usage
(
void
)
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
printf
(
"\
Loads tables from text files in various formats. The base name of the
\n
\
text file must be the name of the table that should be used.
\n
\
...
...
client/mysqlshow.c
View file @
2d7b3bad
...
...
@@ -264,7 +264,7 @@ static void print_version(void)
static
void
usage
(
void
)
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
)"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
)"
));
puts
(
"Shows the structure of a MySQL database (databases, tables, and columns).
\n
"
);
printf
(
"Usage: %s [OPTIONS] [database [table [column]]]
\n
"
,
my_progname
);
puts
(
"
\n
\
...
...
client/mysqltest.cc
View file @
2d7b3bad
...
...
@@ -22,13 +22,6 @@
http://dev.mysql.com/doc/mysqltest/en/index.html
Please keep the test framework tools identical in all versions!
Written by:
Sasha Pachev <sasha@mysql.com>
Matt Wagner <matt@mysql.com>
Monty
Jani
Holyfoot
*/
#define MTEST_VERSION "3.3"
...
...
@@ -6438,7 +6431,7 @@ void print_version(void)
void
usage
()
{
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
printf
(
"Runs a test against the mysql server and compares output with a results file.
\n\n
"
);
printf
(
"Usage: %s [OPTIONS] [database] < test_file
\n
"
,
my_progname
);
my_print_help
(
my_long_options
);
...
...
sql/gen_lex_hash.cc
View file @
2d7b3bad
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
/*
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -84,6 +85,8 @@ So, we can read full search-structure as 32-bit word
#include <stdio.h>
#include <string.h>
#include <welcome_copyright_notice.h>
/* ORACLE_WELCOME_COPYRIGHT_NOTICE */
struct
hash_lex_struct
{
int
first_char
;
...
...
@@ -374,24 +377,9 @@ int main(int argc,char **argv)
/* Broken up to indicate that it's not advice to you, gentle reader. */
printf
(
"/*
\n\n
Do "
"not "
"edit "
"this "
"file "
"directly!
\n\n
*/
\n
"
);
printf
(
"\
/* Copyright (C) 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
\n
\
\n
\
This program is free software; you can redistribute it and/or modify
\n
\
it under the terms of the GNU General Public License as published by
\n
\
the Free Software Foundation; version 2 of the License.
\n
\
\n
\
This program is distributed in the hope that it will be useful,
\n
\
but WITHOUT ANY WARRANTY; without even the implied warranty of
\n
\
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\n
\
GNU General Public License for more details.
\n
\
\n
\
You should have received a copy of the GNU General Public License
\n
\
along with this program; see the file COPYING. If not, write to the
\n
\
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
\n
\
MA 02110-1301 USA. */
\n
\
\n
\
"
);
puts
(
"/*"
);
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 2011"
));
puts
(
"*/"
);
/* Broken up to indicate that it's not advice to you, gentle reader. */
printf
(
"/* Do "
"not "
"edit "
"this "
"file! This is generated by "
...
...
sql/mysqld.cc
View file @
2d7b3bad
...
...
@@ -6708,7 +6708,7 @@ static void usage(void)
if
(
!
default_collation_name
)
default_collation_name
=
(
char
*
)
default_charset_info
->
name
;
print_version
();
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
0
"
));
puts
(
ORACLE_WELCOME_COPYRIGHT_NOTICE
(
"2000, 201
1
"
));
puts
(
"Starts the MySQL database server.
\n
"
);
printf
(
"Usage: %s [OPTIONS]
\n
"
,
my_progname
);
if
(
!
opt_verbose
)
...
...
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