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
e68afa7c
Commit
e68afa7c
authored
Nov 04, 2011
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge mysql-5.1->mysql-5.5
parents
5510bf46
0e2af2cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
+12
-4
client/sql_string.cc
client/sql_string.cc
+2
-1
sql/sql_string.cc
sql/sql_string.cc
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+1
-1
storage/innodb_plugin/ChangeLog
storage/innodb_plugin/ChangeLog
+5
-0
storage/innodb_plugin/row/row0mysql.c
storage/innodb_plugin/row/row0mysql.c
+2
-1
No files found.
client/sql_string.cc
View file @
e68afa7c
...
@@ -188,7 +188,8 @@ bool String::set(double num,uint decimals, CHARSET_INFO *cs)
...
@@ -188,7 +188,8 @@ bool String::set(double num,uint decimals, CHARSET_INFO *cs)
#else
#else
#ifdef HAVE_SNPRINTF
#ifdef HAVE_SNPRINTF
buff
[
sizeof
(
buff
)
-
1
]
=
0
;
// Safety
buff
[
sizeof
(
buff
)
-
1
]
=
0
;
// Safety
int
num_chars
=
snprintf
(
buff
,
sizeof
(
buff
)
-
1
,
"%.*f"
,(
int
)
decimals
,
num
);
IF_DBUG
(
int
num_chars
=
)
snprintf
(
buff
,
sizeof
(
buff
)
-
1
,
"%.*f"
,(
int
)
decimals
,
num
);
DBUG_ASSERT
(
num_chars
>
0
);
DBUG_ASSERT
(
num_chars
>
0
);
DBUG_ASSERT
(
num_chars
<
(
int
)
sizeof
(
buff
));
DBUG_ASSERT
(
num_chars
<
(
int
)
sizeof
(
buff
));
#else
#else
...
...
sql/sql_string.cc
View file @
e68afa7c
...
@@ -200,7 +200,8 @@ bool String::set_real(double num,uint decimals, CHARSET_INFO *cs)
...
@@ -200,7 +200,8 @@ bool String::set_real(double num,uint decimals, CHARSET_INFO *cs)
#else
#else
#ifdef HAVE_SNPRINTF
#ifdef HAVE_SNPRINTF
buff
[
sizeof
(
buff
)
-
1
]
=
0
;
// Safety
buff
[
sizeof
(
buff
)
-
1
]
=
0
;
// Safety
int
num_chars
=
snprintf
(
buff
,
sizeof
(
buff
)
-
1
,
"%.*f"
,(
int
)
decimals
,
num
);
IF_DBUG
(
int
num_chars
=
)
snprintf
(
buff
,
sizeof
(
buff
)
-
1
,
"%.*f"
,(
int
)
decimals
,
num
);
DBUG_ASSERT
(
num_chars
>
0
);
DBUG_ASSERT
(
num_chars
>
0
);
DBUG_ASSERT
(
num_chars
<
(
int
)
sizeof
(
buff
));
DBUG_ASSERT
(
num_chars
<
(
int
)
sizeof
(
buff
));
#else
#else
...
...
sql/sql_table.cc
View file @
e68afa7c
...
@@ -6985,7 +6985,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -6985,7 +6985,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
need_copy_table
=
ALTER_TABLE_DATA_CHANGED
;
need_copy_table
=
ALTER_TABLE_DATA_CHANGED
;
else
else
{
{
enum_alter_table_change_level
need_copy_table_res
;
enum_alter_table_change_level
need_copy_table_res
=
ALTER_TABLE_METADATA_ONLY
;
/* Check how much the tables differ. */
/* Check how much the tables differ. */
if
(
compare_tables
(
table
,
alter_info
,
if
(
compare_tables
(
table
,
alter_info
,
create_info
,
order_num
,
create_info
,
order_num
,
...
...
storage/innodb_plugin/ChangeLog
View file @
e68afa7c
2011-10-27 The InnoDB Team
* row/row0mysql.c:
Fix Bug #12884631 62146: TABLES ARE LOST FOR DDL
2011-10-25 The InnoDB Team
2011-10-25 The InnoDB Team
* handler/ha_innodb.cc, row/row0ins.c:
* handler/ha_innodb.cc, row/row0ins.c:
...
...
storage/innodb_plugin/row/row0mysql.c
View file @
e68afa7c
/*****************************************************************************
/*****************************************************************************
Copyright (c) 2000, 201
0, Innobase Oy
. All Rights Reserved.
Copyright (c) 2000, 201
1, Oracle and/or its affiliates
. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
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 the Free Software
the terms of the GNU General Public License as published by the Free Software
...
@@ -3971,6 +3971,7 @@ row_rename_table_for_mysql(
...
@@ -3971,6 +3971,7 @@ row_rename_table_for_mysql(
trx
->
error_state
=
DB_SUCCESS
;
trx
->
error_state
=
DB_SUCCESS
;
trx_general_rollback_for_mysql
(
trx
,
NULL
);
trx_general_rollback_for_mysql
(
trx
,
NULL
);
trx
->
error_state
=
DB_SUCCESS
;
trx
->
error_state
=
DB_SUCCESS
;
err
=
DB_ERROR
;
goto
funct_exit
;
goto
funct_exit
;
}
}
...
...
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