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
62079eca
Commit
62079eca
authored
Apr 16, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
5048aa82
2b322f36
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
18 deletions
+24
-18
scripts/mysql_create_system_tables.sh
scripts/mysql_create_system_tables.sh
+1
-0
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+2
-0
sql/handler.cc
sql/handler.cc
+2
-7
sql/mysqld.cc
sql/mysqld.cc
+17
-9
sql/set_var.cc
sql/set_var.cc
+2
-2
No files found.
scripts/mysql_create_system_tables.sh
View file @
62079eca
...
...
@@ -629,6 +629,7 @@ fi
cat
<<
END_OF_DATA
use mysql;
set table_type=myisam;
$c_d
$i_d
...
...
scripts/mysql_fix_privilege_tables.sql
View file @
62079eca
...
...
@@ -9,6 +9,8 @@
-- this sql script.
-- On windows you should do 'mysql --force mysql < mysql_fix_privilege_tables.sql'
set
table_type
=
MyISAM
;
CREATE
TABLE
IF
NOT
EXISTS
func
(
name
char
(
64
)
binary
DEFAULT
''
NOT
NULL
,
ret
tinyint
(
1
)
DEFAULT
'0'
NOT
NULL
,
...
...
sql/handler.cc
View file @
62079eca
...
...
@@ -163,13 +163,8 @@ my_bool ha_storage_engine_is_enabled(enum db_type database_type)
enum
db_type
ha_checktype
(
enum
db_type
database_type
)
{
show_table_type_st
*
types
;
for
(
types
=
sys_table_types
;
types
->
type
;
types
++
)
{
if
((
database_type
==
types
->
db_type
)
&&
(
*
types
->
value
==
SHOW_OPTION_YES
))
return
database_type
;
}
if
(
ha_storage_engine_is_enabled
(
database_type
))
return
database_type
;
switch
(
database_type
)
{
#ifndef NO_HASH
...
...
sql/mysqld.cc
View file @
62079eca
...
...
@@ -2426,8 +2426,10 @@ static int init_common_variables(const char *conf_file_name, int argc,
{
struct
tm
tm_tmp
;
localtime_r
(
&
start_time
,
&
tm_tmp
);
strmov
(
system_time_zone
,
tzname
[
tm_tmp
.
tm_isdst
!=
0
?
1
:
0
]);
}
strmake
(
system_time_zone
,
tzname
[
tm_tmp
.
tm_isdst
!=
0
?
1
:
0
],
sizeof
(
system_time_zone
)
-
1
);
}
#endif
/*
We set SYSTEM time zone as reasonable default and
...
...
@@ -3081,7 +3083,8 @@ we force server id to 2, but this MySQL server will not act as a slave.");
if
(
opt_bootstrap
)
{
int
error
=
bootstrap
(
stdin
);
select_thread_in_use
=
0
;
// Allow 'kill' to work
int
error
=
bootstrap
(
stdin
);
end_thr_alarm
(
1
);
// Don't allow alarms
unireg_abort
(
error
?
1
:
0
);
}
...
...
@@ -6184,9 +6187,10 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
case
OPT_STORAGE_ENGINE
:
{
if
((
enum
db_type
)((
global_system_variables
.
table_type
=
ha_resolve_by_name
(
argument
,
strlen
(
argument
))))
==
DB_TYPE_UNKNOWN
)
ha_resolve_by_name
(
argument
,
strlen
(
argument
))))
==
DB_TYPE_UNKNOWN
)
{
fprintf
(
stderr
,
"Unknown table type: %s
\n
"
,
argument
);
fprintf
(
stderr
,
"Unknown
/unsupported
table type: %s
\n
"
,
argument
);
exit
(
1
);
}
break
;
...
...
@@ -6442,10 +6446,14 @@ static void get_options(int argc,char **argv)
if
(
!
ha_storage_engine_is_enabled
((
enum
db_type
)
global_system_variables
.
table_type
))
{
sql_print_error
(
"Default storage engine (%s) is not available"
,
ha_get_storage_engine
((
enum
db_type
)
global_system_variables
.
table_type
));
exit
(
1
);
if
(
!
opt_bootstrap
)
{
sql_print_error
(
"Default storage engine (%s) is not available"
,
ha_get_storage_engine
((
enum
db_type
)
global_system_variables
.
table_type
));
exit
(
1
);
}
global_system_variables
.
table_type
=
DB_TYPE_MYISAM
;
}
if
(
argc
>
0
)
...
...
sql/set_var.cc
View file @
62079eca
...
...
@@ -2985,8 +2985,8 @@ bool sys_var_thd_storage_engine::check(THD *thd, set_var *var)
enum
db_type
db_type
;
if
(
!
(
res
=
var
->
value
->
val_str
(
&
str
))
||
!
(
var
->
save_result
.
ulong_value
=
(
ulong
)
(
db_type
=
ha_resolve_by_name
(
res
->
ptr
(),
res
->
length
())))
||
ha_checktype
(
db_type
)
!=
db_type
)
(
ulong
)
(
db_type
=
ha_resolve_by_name
(
res
->
ptr
(),
res
->
length
())))
||
ha_checktype
(
db_type
)
!=
db_type
)
{
value
=
res
?
res
->
c_ptr
()
:
"NULL"
;
goto
err
;
...
...
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