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
bd1e6502
Commit
bd1e6502
authored
Mar 20, 2009
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
26adc3cd
0bab3f2f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
27 deletions
+25
-27
client/mysql_upgrade.c
client/mysql_upgrade.c
+1
-1
mysql-test/r/mysqlbinlog.result
mysql-test/r/mysqlbinlog.result
+15
-15
mysys/base64.c
mysys/base64.c
+1
-1
sql/log_event.cc
sql/log_event.cc
+0
-3
sql/sql_cache.cc
sql/sql_cache.cc
+2
-2
sql/sql_servers.cc
sql/sql_servers.cc
+2
-2
sql/sql_view.cc
sql/sql_view.cc
+2
-1
storage/csv/transparent_file.cc
storage/csv/transparent_file.cc
+2
-2
No files found.
client/mysql_upgrade.c
View file @
bd1e6502
...
@@ -373,7 +373,7 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
...
@@ -373,7 +373,7 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
}
}
else
else
{
{
size_
t
len
;
in
t
len
;
/*
/*
mysql_upgrade was run absolutely or relatively. We can find a sibling
mysql_upgrade was run absolutely or relatively. We can find a sibling
...
...
mysql-test/r/mysqlbinlog.result
View file @
bd1e6502
...
@@ -44,16 +44,16 @@ SET TIMESTAMP=1000000000/*!*/;
...
@@ -44,16 +44,16 @@ SET TIMESTAMP=1000000000/*!*/;
insert into t2 values ()
insert into t2 values ()
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
DELIMITER ;
DELIMITER ;
# End of log file
# End of log file
...
@@ -144,16 +144,16 @@ SET TIMESTAMP=1000000000/*!*/;
...
@@ -144,16 +144,16 @@ SET TIMESTAMP=1000000000/*!*/;
insert into t2 values ()
insert into t2 values ()
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
DELIMITER ;
DELIMITER ;
# End of log file
# End of log file
...
@@ -359,29 +359,29 @@ SET @@session.collation_database=DEFAULT/*!*/;
...
@@ -359,29 +359,29 @@ SET @@session.collation_database=DEFAULT/*!*/;
create table t1 (a varchar(64) character set utf8)
create table t1 (a varchar(64) character set utf8)
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
SET @@session.collation_database=7/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
SET @@session.collation_database=7/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-a-0' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-a-0' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-b-0' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-b-0' INTO
table t1
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-c-0' INTO table t1 character set koi8r
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-c-0' INTO
table t1 character set koi8r
/*!*/;
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET TIMESTAMP=1000000000/*!*/;
drop table t1
drop table t1
...
...
mysys/base64.c
View file @
bd1e6502
...
@@ -223,7 +223,7 @@ base64_decode(const char *src_base, size_t len,
...
@@ -223,7 +223,7 @@ base64_decode(const char *src_base, size_t len,
The variable 'i' is set to 'len' when padding has been read, so it
The variable 'i' is set to 'len' when padding has been read, so it
does not actually reflect the number of bytes read from 'src'.
does not actually reflect the number of bytes read from 'src'.
*/
*/
return
i
!=
len
?
-
1
:
(
u
int
)
(
d
-
dst_base
);
return
i
!=
len
?
-
1
:
(
int
)
(
d
-
dst_base
);
}
}
...
...
sql/log_event.cc
View file @
bd1e6502
...
@@ -1289,7 +1289,6 @@ void Log_event::print_header(IO_CACHE* file,
...
@@ -1289,7 +1289,6 @@ void Log_event::print_header(IO_CACHE* file,
ptr
[
0
],
ptr
[
1
],
ptr
[
2
],
ptr
[
3
],
ptr
[
4
],
ptr
[
5
],
ptr
[
6
],
ptr
[
0
],
ptr
[
1
],
ptr
[
2
],
ptr
[
3
],
ptr
[
4
],
ptr
[
5
],
ptr
[
6
],
ptr
[
7
],
ptr
[
8
],
ptr
[
9
],
ptr
[
10
],
ptr
[
11
],
ptr
[
12
],
ptr
[
13
],
ptr
[
7
],
ptr
[
8
],
ptr
[
9
],
ptr
[
10
],
ptr
[
11
],
ptr
[
12
],
ptr
[
13
],
ptr
[
14
],
ptr
[
15
],
ptr
[
16
],
ptr
[
17
],
ptr
[
18
]);
ptr
[
14
],
ptr
[
15
],
ptr
[
16
],
ptr
[
17
],
ptr
[
18
]);
DBUG_ASSERT
(
bytes_written
>=
0
);
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
ptr
+=
LOG_EVENT_MINIMAL_HEADER_LEN
;
ptr
+=
LOG_EVENT_MINIMAL_HEADER_LEN
;
...
@@ -1320,7 +1319,6 @@ void Log_event::print_header(IO_CACHE* file,
...
@@ -1320,7 +1319,6 @@ void Log_event::print_header(IO_CACHE* file,
"# %8.8lx %-48.48s |%16s|
\n
"
,
"# %8.8lx %-48.48s |%16s|
\n
"
,
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
hex_string
,
char_string
);
hex_string
,
char_string
);
DBUG_ASSERT
(
bytes_written
>=
0
);
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
hex_string
[
0
]
=
0
;
hex_string
[
0
]
=
0
;
...
@@ -1340,7 +1338,6 @@ void Log_event::print_header(IO_CACHE* file,
...
@@ -1340,7 +1338,6 @@ void Log_event::print_header(IO_CACHE* file,
"# %8.8lx %-48.48s |%s|
\n
"
,
"# %8.8lx %-48.48s |%s|
\n
"
,
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
hex_string
,
char_string
);
hex_string
,
char_string
);
DBUG_ASSERT
(
bytes_written
>=
0
);
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
DBUG_ASSERT
(
static_cast
<
size_t
>
(
bytes_written
)
<
sizeof
(
emit_buf
));
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
my_b_write
(
file
,
(
uchar
*
)
emit_buf
,
bytes_written
);
}
}
...
...
sql/sql_cache.cc
View file @
bd1e6502
...
@@ -1114,7 +1114,7 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
...
@@ -1114,7 +1114,7 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
{
{
memcpy
(
thd
->
query
+
thd
->
query_length
+
1
,
thd
->
db
,
thd
->
db_length
);
memcpy
(
thd
->
query
+
thd
->
query_length
+
1
,
thd
->
db
,
thd
->
db_length
);
DBUG_PRINT
(
"qcache"
,
(
"database: %s length: %u"
,
DBUG_PRINT
(
"qcache"
,
(
"database: %s length: %u"
,
thd
->
db
,
thd
->
db_length
));
thd
->
db
,
(
unsigned
)
thd
->
db_length
));
}
}
else
else
{
{
...
@@ -1307,7 +1307,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
...
@@ -1307,7 +1307,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
{
{
memcpy
(
sql
+
query_length
+
1
,
thd
->
db
,
thd
->
db_length
);
memcpy
(
sql
+
query_length
+
1
,
thd
->
db
,
thd
->
db_length
);
DBUG_PRINT
(
"qcache"
,
(
"database: '%s' length: %u"
,
DBUG_PRINT
(
"qcache"
,
(
"database: '%s' length: %u"
,
thd
->
db
,
thd
->
db_length
));
thd
->
db
,
(
unsigned
)
thd
->
db_length
));
}
}
else
else
{
{
...
...
sql/sql_servers.cc
View file @
bd1e6502
...
@@ -1290,8 +1290,8 @@ FOREIGN_SERVER *get_server_by_name(MEM_ROOT *mem, const char *server_name,
...
@@ -1290,8 +1290,8 @@ FOREIGN_SERVER *get_server_by_name(MEM_ROOT *mem, const char *server_name,
(
uchar
*
)
server_name
,
(
uchar
*
)
server_name
,
server_name_length
)))
server_name_length
)))
{
{
DBUG_PRINT
(
"info"
,
(
"server_name %s length %
d
not found!"
,
DBUG_PRINT
(
"info"
,
(
"server_name %s length %
u
not found!"
,
server_name
,
server_name_length
));
server_name
,
(
unsigned
)
server_name_length
));
server
=
(
FOREIGN_SERVER
*
)
NULL
;
server
=
(
FOREIGN_SERVER
*
)
NULL
;
}
}
/* otherwise, make copy of server */
/* otherwise, make copy of server */
...
...
sql/sql_view.cc
View file @
bd1e6502
...
@@ -61,7 +61,8 @@ static void make_unique_view_field_name(Item *target,
...
@@ -61,7 +61,8 @@ static void make_unique_view_field_name(Item *target,
char
*
name
=
(
target
->
orig_name
?
char
*
name
=
(
target
->
orig_name
?
target
->
orig_name
:
target
->
orig_name
:
target
->
name
);
target
->
name
);
size_t
name_len
,
attempt
;
size_t
name_len
;
uint
attempt
;
char
buff
[
NAME_LEN
+
1
];
char
buff
[
NAME_LEN
+
1
];
List_iterator_fast
<
Item
>
itc
(
item_list
);
List_iterator_fast
<
Item
>
itc
(
item_list
);
...
...
storage/csv/transparent_file.cc
View file @
bd1e6502
...
@@ -82,7 +82,7 @@ char Transparent_file::get_value(off_t offset)
...
@@ -82,7 +82,7 @@ char Transparent_file::get_value(off_t offset)
size_t
bytes_read
;
size_t
bytes_read
;
/* check boundaries */
/* check boundaries */
if
((
lower_bound
<=
offset
)
&&
(
offset
<
upper_bound
))
if
((
lower_bound
<=
offset
)
&&
(
((
my_off_t
)
offset
)
<
upper_bound
))
return
buff
[
offset
-
lower_bound
];
return
buff
[
offset
-
lower_bound
];
VOID
(
my_seek
(
filedes
,
offset
,
MY_SEEK_SET
,
MYF
(
0
)));
VOID
(
my_seek
(
filedes
,
offset
,
MY_SEEK_SET
,
MYF
(
0
)));
...
@@ -95,7 +95,7 @@ char Transparent_file::get_value(off_t offset)
...
@@ -95,7 +95,7 @@ char Transparent_file::get_value(off_t offset)
upper_bound
=
lower_bound
+
bytes_read
;
upper_bound
=
lower_bound
+
bytes_read
;
/* end of file */
/* end of file */
if
(
upper_bound
==
offset
)
if
(
upper_bound
==
(
my_off_t
)
offset
)
return
0
;
return
0
;
return
buff
[
0
];
return
buff
[
0
];
...
...
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