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
3693aa47
Commit
3693aa47
authored
Nov 03, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fixes
libmysqld/lib_sql.cc: After merge fix sql/handler.cc: Cleanup
parent
4fb5d78d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
sql/handler.cc
sql/handler.cc
+11
-8
sql/sql_table.cc
sql/sql_table.cc
+1
-2
No files found.
libmysqld/lib_sql.cc
View file @
3693aa47
...
@@ -591,7 +591,7 @@ err:
...
@@ -591,7 +591,7 @@ err:
C_MODE_END
C_MODE_END
bool
Protocol
::
send_fields
(
List
<
Item
>
*
list
,
int
flags
)
bool
Protocol
::
send_fields
(
List
<
Item
>
*
list
,
u
int
flags
)
{
{
List_iterator_fast
<
Item
>
it
(
*
list
);
List_iterator_fast
<
Item
>
it
(
*
list
);
Item
*
item
;
Item
*
item
;
...
...
sql/handler.cc
View file @
3693aa47
...
@@ -157,12 +157,11 @@ enum db_type ha_checktype(enum db_type database_type)
...
@@ -157,12 +157,11 @@ enum db_type ha_checktype(enum db_type database_type)
break
;
break
;
}
}
return
return
((
enum
db_type
)
thd
->
variables
.
table_type
!=
DB_TYPE_UNKNOWN
?
DB_TYPE_UNKNOWN
!=
(
enum
db_type
)
thd
->
variables
.
table_type
?
(
enum
db_type
)
thd
->
variables
.
table_type
:
(
enum
db_type
)
thd
->
variables
.
table_type
:
(
enum
db_type
)
global_system_variables
.
table_type
!=
DB_TYPE_UNKNOWN
!=
(
enum
db_type
)
global_system_variables
.
table_type
?
DB_TYPE_UNKNOWN
?
(
enum
db_type
)
global_system_variables
.
table_type
:
(
enum
db_type
)
global_system_variables
.
table_type
:
DB_TYPE_MYISAM
);
DB_TYPE_MYISAM
;
}
/* ha_checktype */
}
/* ha_checktype */
...
@@ -784,10 +783,14 @@ bool ha_flush_logs()
...
@@ -784,10 +783,14 @@ bool ha_flush_logs()
int
ha_delete_table
(
enum
db_type
table_type
,
const
char
*
path
)
int
ha_delete_table
(
enum
db_type
table_type
,
const
char
*
path
)
{
{
handler
*
file
;
char
tmp_path
[
FN_REFLEN
];
char
tmp_path
[
FN_REFLEN
];
handler
*
file
=
(
table_type
==
DB_TYPE_UNKNOWN
?
0
:
get_new_handler
((
TABLE
*
)
0
,
table_type
));
if
(
!
file
)
/* DB_TYPE_UNKNOWN is used in ALTER TABLE when renaming only .frm files */
if
(
table_type
==
DB_TYPE_UNKNOWN
||
!
(
file
=
get_new_handler
((
TABLE
*
)
0
,
table_type
)))
return
ENOENT
;
return
ENOENT
;
if
(
lower_case_table_names
==
2
&&
!
(
file
->
table_flags
()
&
HA_FILE_BASED
))
if
(
lower_case_table_names
==
2
&&
!
(
file
->
table_flags
()
&
HA_FILE_BASED
))
{
{
/* Ensure that table handler get path in lower case */
/* Ensure that table handler get path in lower case */
...
...
sql/sql_table.cc
View file @
3693aa47
...
@@ -3085,7 +3085,6 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -3085,7 +3085,6 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
}
/* We don't want update TIMESTAMP fields during ALTER TABLE. */
/* We don't want update TIMESTAMP fields during ALTER TABLE. */
new_table
->
timestamp_field_type
=
TIMESTAMP_NO_AUTO_SET
;
thd
->
count_cuted_fields
=
CHECK_FIELD_WARN
;
// calc cuted fields
thd
->
count_cuted_fields
=
CHECK_FIELD_WARN
;
// calc cuted fields
thd
->
cuted_fields
=
0L
;
thd
->
cuted_fields
=
0L
;
thd
->
proc_info
=
"copy to tmp table"
;
thd
->
proc_info
=
"copy to tmp table"
;
...
@@ -3093,7 +3092,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -3093,7 +3092,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
copied
=
deleted
=
0
;
copied
=
deleted
=
0
;
if
(
new_table
&&
!
new_table
->
is_view
)
if
(
new_table
&&
!
new_table
->
is_view
)
{
{
new_table
->
timestamp_
default_now
=
0
;
new_table
->
timestamp_
field_type
=
TIMESTAMP_NO_AUTO_SET
;
new_table
->
next_number_field
=
new_table
->
found_next_number_field
;
new_table
->
next_number_field
=
new_table
->
found_next_number_field
;
error
=
copy_data_between_tables
(
table
,
new_table
,
create_list
,
error
=
copy_data_between_tables
(
table
,
new_table
,
create_list
,
handle_duplicates
,
handle_duplicates
,
...
...
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