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
ac286a9b
Commit
ac286a9b
authored
May 08, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '5.5' into 10.0
parents
a1ad7121
0014bdc7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
5 deletions
+31
-5
mysql-test/r/repair.result
mysql-test/r/repair.result
+7
-0
mysql-test/t/repair.test
mysql-test/t/repair.test
+9
-0
sql/sql_admin.cc
sql/sql_admin.cc
+1
-1
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+2
-0
storage/innobase/handler/i_s.cc
storage/innobase/handler/i_s.cc
+5
-2
storage/xtradb/CMakeLists.txt
storage/xtradb/CMakeLists.txt
+2
-0
storage/xtradb/handler/i_s.cc
storage/xtradb/handler/i_s.cc
+5
-2
No files found.
mysql-test/r/repair.result
View file @
ac286a9b
...
...
@@ -207,3 +207,10 @@ check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
create table t1 (a blob);
create view v1 as select * from t1;
repair view v1;
Table Op Msg_type Msg_text
test.v1 repair status OK
drop view v1;
drop table t1;
mysql-test/t/repair.test
View file @
ac286a9b
...
...
@@ -210,3 +210,12 @@ repair table t1 use_frm;
select
count
(
*
)
from
t1
;
check
table
t1
;
drop
table
t1
;
#
# MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW
#
create
table
t1
(
a
blob
);
create
view
v1
as
select
*
from
t1
;
repair
view
v1
;
drop
view
v1
;
drop
table
t1
;
sql/sql_admin.cc
View file @
ac286a9b
...
...
@@ -1012,7 +1012,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
break
;
}
}
if
(
table
->
table
)
if
(
table
->
table
&&
!
table
->
view
)
{
if
(
table
->
table
->
s
->
tmp_table
)
{
...
...
storage/innobase/CMakeLists.txt
View file @
ac286a9b
...
...
@@ -199,6 +199,8 @@ IF(HAVE_IB_ATOMIC_PTHREAD_T_GCC)
ADD_DEFINITIONS
(
-DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1
)
ENDIF
()
CHECK_C_SOURCE_COMPILES
(
"struct t1{ int a; char *b; }; struct t1 c= { .a=1, .b=0 }; main() { }"
HAVE_C99_INITIALIZERS
)
ENDIF
(
NOT MSVC
)
CHECK_FUNCTION_EXISTS
(
asprintf HAVE_ASPRINTF
)
...
...
storage/innobase/handler/i_s.cc
View file @
ac286a9b
...
...
@@ -157,9 +157,12 @@ do { \
} \
} while (0)
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \
!defined __INTEL_COMPILER && !defined __clang__
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && !defined __INTEL_COMPILER && !defined __clang__
#ifdef HAVE_C99_INITIALIZERS
#define STRUCT_FLD(name, value) .name = value
#else
#define STRUCT_FLD(name, value) name: value
#endif
/* HAVE_C99_INITIALIZERS */
#else
#define STRUCT_FLD(name, value) value
#endif
...
...
storage/xtradb/CMakeLists.txt
View file @
ac286a9b
...
...
@@ -206,6 +206,8 @@ IF(HAVE_IB_ATOMIC_PTHREAD_T_GCC)
ADD_DEFINITIONS
(
-DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1
)
ENDIF
()
CHECK_C_SOURCE_COMPILES
(
"struct t1{ int a; char *b; }; struct t1 c= { .a=1, .b=0 }; main() { }"
HAVE_C99_INITIALIZERS
)
ENDIF
(
NOT MSVC
)
CHECK_FUNCTION_EXISTS
(
asprintf HAVE_ASPRINTF
)
...
...
storage/xtradb/handler/i_s.cc
View file @
ac286a9b
...
...
@@ -169,9 +169,12 @@ do { \
} \
} while (0)
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \
!defined __INTEL_COMPILER && !defined __clang__
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && !defined __INTEL_COMPILER && !defined __clang__
#ifdef HAVE_C99_INITIALIZERS
#define STRUCT_FLD(name, value) .name = value
#else
#define STRUCT_FLD(name, value) name: value
#endif
/* HAVE_C99_INITIALIZERS */
#else
#define STRUCT_FLD(name, value) value
#endif
...
...
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