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
37168015
Commit
37168015
authored
Jan 25, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanups during review
parent
1ba93bd4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
18 deletions
+20
-18
.bzrignore
.bzrignore
+3
-0
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+13
-4
innobase/include/eval0eval.ic
innobase/include/eval0eval.ic
+0
-2
sql/mysqld.cc
sql/mysqld.cc
+4
-5
sql/sql_select.cc
sql/sql_select.cc
+0
-7
No files found.
.bzrignore
View file @
37168015
...
@@ -1004,3 +1004,6 @@ vio/test-sslserver
...
@@ -1004,3 +1004,6 @@ vio/test-sslserver
vio/viotest-ssl
vio/viotest-ssl
tests/mysql_client_test
tests/mysql_client_test
tests/mysql_client_test
tests/mysql_client_test
libmysqld/examples/mysql_client_test.c
libmysqld/examples/mysql_client_test_embedded
libmysqld/examples/mysqltest_embedded
client/mysqlbinlog.cc
View file @
37168015
...
@@ -687,7 +687,7 @@ static int parse_args(int *argc, char*** argv)
...
@@ -687,7 +687,7 @@ static int parse_args(int *argc, char*** argv)
static
MYSQL
*
safe_connect
()
static
MYSQL
*
safe_connect
()
{
{
MYSQL
*
local_mysql
=
mysql_init
(
NULL
);
MYSQL
*
local_mysql
=
mysql_init
(
NULL
);
if
(
!
local_mysql
)
if
(
!
local_mysql
)
die
(
"Failed on mysql_init"
);
die
(
"Failed on mysql_init"
);
...
@@ -695,8 +695,12 @@ static MYSQL* safe_connect()
...
@@ -695,8 +695,12 @@ static MYSQL* safe_connect()
if
(
opt_protocol
)
if
(
opt_protocol
)
mysql_options
(
local_mysql
,
MYSQL_OPT_PROTOCOL
,
(
char
*
)
&
opt_protocol
);
mysql_options
(
local_mysql
,
MYSQL_OPT_PROTOCOL
,
(
char
*
)
&
opt_protocol
);
if
(
!
mysql_real_connect
(
local_mysql
,
host
,
user
,
pass
,
0
,
port
,
sock
,
0
))
if
(
!
mysql_real_connect
(
local_mysql
,
host
,
user
,
pass
,
0
,
port
,
sock
,
0
))
die
(
"failed on connect: %s"
,
mysql_error
(
local_mysql
));
{
char
errmsg
[
256
];
strmake
(
errmsg
,
mysql_error
(
local_mysql
),
sizeof
(
errmsg
)
-
1
);
mysql_close
(
local_mysql
);
die
(
"failed on connect: %s"
,
errmsg
);
}
return
local_mysql
;
return
local_mysql
;
}
}
...
@@ -717,7 +721,12 @@ static int check_master_version(MYSQL* mysql)
...
@@ -717,7 +721,12 @@ static int check_master_version(MYSQL* mysql)
if
(
mysql_query
(
mysql
,
"SELECT VERSION()"
)
||
if
(
mysql_query
(
mysql
,
"SELECT VERSION()"
)
||
!
(
res
=
mysql_store_result
(
mysql
)))
!
(
res
=
mysql_store_result
(
mysql
)))
die
(
"Error checking master version: %s"
,
mysql_error
(
mysql
));
{
char
errmsg
[
256
];
strmake
(
errmsg
,
mysql_error
(
mysql
),
sizeof
(
errmsg
)
-
1
);
mysql_close
(
mysql
);
die
(
"Error checking master version: %s"
,
errmsg
);
}
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
{
{
mysql_free_result
(
res
);
mysql_free_result
(
res
);
...
...
innobase/include/eval0eval.ic
View file @
37168015
...
@@ -205,8 +205,6 @@ eval_node_copy_and_alloc_val(
...
@@ -205,8 +205,6 @@ eval_node_copy_and_alloc_val(
{
{
byte* data;
byte* data;
ut_ad(UNIV_SQL_NULL > ULINT_MAX);
if (len == UNIV_SQL_NULL) {
if (len == UNIV_SQL_NULL) {
dfield_set_len(que_node_get_val(node), len);
dfield_set_len(que_node_get_val(node), len);
...
...
sql/mysqld.cc
View file @
37168015
...
@@ -2915,12 +2915,11 @@ You should consider changing lower_case_table_names to 1 or 2",
...
@@ -2915,12 +2915,11 @@ You should consider changing lower_case_table_names to 1 or 2",
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
{
{
if
(
global_system_variables
.
log_warnings
)
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"\
sql_print_warning
(
"lower_case_table_names was set to 2, even though your "
You have forced lower_case_table_names to 2 through a command-line \
"the file system '%s' is case sensitive. Now setting "
option, even though your file system '%s' is case sensitive. This means \
"lower_case_table_names to 0 to avoid future problems."
,
that you can create a table that you can then no longer access. \
You should consider changing lower_case_table_names to 0."
,
mysql_real_data_home
);
mysql_real_data_home
);
lower_case_table_names
=
0
;
}
}
select_thread
=
pthread_self
();
select_thread
=
pthread_self
();
...
...
sql/sql_select.cc
View file @
37168015
...
@@ -2828,16 +2828,9 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
...
@@ -2828,16 +2828,9 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
x = used key parts (1 <= x <= c)
x = used key parts (1 <= x <= c)
*/
*/
double
rec_per_key
;
double
rec_per_key
;
#if 0
if (!(rec_per_key=(double)
keyinfo->rec_per_key[keyinfo->key_parts-1]))
rec_per_key=(double) s->records/rec+1;
#else
rec_per_key
=
keyinfo
->
rec_per_key
[
keyinfo
->
key_parts
-
1
]
?
rec_per_key
=
keyinfo
->
rec_per_key
[
keyinfo
->
key_parts
-
1
]
?
(
double
)
keyinfo
->
rec_per_key
[
keyinfo
->
key_parts
-
1
]
:
(
double
)
keyinfo
->
rec_per_key
[
keyinfo
->
key_parts
-
1
]
:
(
double
)
s
->
records
/
rec
+
1
;
(
double
)
s
->
records
/
rec
+
1
;
#endif
if
(
!
s
->
records
)
if
(
!
s
->
records
)
tmp
=
0
;
tmp
=
0
;
else
if
(
rec_per_key
/
(
double
)
s
->
records
>=
0.01
)
else
if
(
rec_per_key
/
(
double
)
s
->
records
>=
0.01
)
...
...
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