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
bb665faf
Commit
bb665faf
authored
Nov 15, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents
532a32bd
7c4c0399
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+2
-2
sql/sql_base.cc
sql/sql_base.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+20
-19
No files found.
mysql-test/r/information_schema.result
View file @
bb665faf
...
@@ -123,8 +123,8 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION DATA_TYPE CHA
...
@@ -123,8 +123,8 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION DATA_TYPE CHA
NULL testtets t1 a 1 int 0 11 4 0 NULL int(11) NULL YES NULL select,insert,update,references
NULL testtets t1 a 1 int 0 11 4 0 NULL int(11) NULL YES NULL select,insert,update,references
show columns * where table_name = "t1";
show columns * where table_name = "t1";
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME TYPE COLLATION_NAME IS_NULLABLE KEY COLUMN_DEFAULT EXTRA PRIVILEGES COMMENT
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME TYPE COLLATION_NAME IS_NULLABLE KEY COLUMN_DEFAULT EXTRA PRIVILEGES COMMENT
NULL testtets t1 a 1 int 0 11 4 0 NULL int(11) NULL YES NULL
NULL testtets t1 a 1 int 0 11 4 0 NULL int(11) NULL YES NULL
select,insert,update,references
NULL testtets t1 b 2 varchar 30 30 30 31 latin1 varchar(30) latin1_swedish_ci YES MUL NULL
NULL testtets t1 b 2 varchar 30 30 30 31 latin1 varchar(30) latin1_swedish_ci YES MUL NULL
select,insert,update,references
drop view v1;
drop view v1;
drop tables testtets.t4, testtets.t1, t2, t3;
drop tables testtets.t4, testtets.t1, t2, t3;
drop database testtets;
drop database testtets;
...
...
sql/sql_base.cc
View file @
bb665faf
...
@@ -1938,7 +1938,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count)
...
@@ -1938,7 +1938,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count)
return
-
1
;
return
-
1
;
for
(
table
=
tables
;
table
;
table
=
table
->
next_global
)
for
(
table
=
tables
;
table
;
table
=
table
->
next_global
)
{
{
if
(
!
table
->
placeholder
())
if
(
!
table
->
placeholder
()
&&
!
table
->
schema_table
)
*
(
ptr
++
)
=
table
->
table
;
*
(
ptr
++
)
=
table
->
table
;
}
}
if
(
!
(
thd
->
lock
=
mysql_lock_tables
(
thd
,
start
,
(
uint
)
(
ptr
-
start
))))
if
(
!
(
thd
->
lock
=
mysql_lock_tables
(
thd
,
start
,
(
uint
)
(
ptr
-
start
))))
...
...
sql/sql_show.cc
View file @
bb665faf
...
@@ -2315,8 +2315,7 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
...
@@ -2315,8 +2315,7 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
if
(
field
->
unireg_check
==
Field
::
NEXT_NUMBER
)
if
(
field
->
unireg_check
==
Field
::
NEXT_NUMBER
)
end
=
strmov
(
tmp
,
"auto_increment"
);
end
=
strmov
(
tmp
,
"auto_increment"
);
table
->
field
[
16
]
->
store
(
tmp
,
(
uint
)
(
end
-
tmp
),
cs
);
table
->
field
[
16
]
->
store
(
tmp
,
(
uint
)
(
end
-
tmp
),
cs
);
if
(
thd
->
lex
->
verbose
)
{
end
=
tmp
;
end
=
tmp
;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
#ifndef NO_EMBEDDED_ACCESS_CHECKS
uint
col_access
;
uint
col_access
;
...
@@ -2338,7 +2337,6 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
...
@@ -2338,7 +2337,6 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
#endif
#endif
table
->
field
[
17
]
->
store
(
tmp
+
1
,
end
==
tmp
?
0
:
(
uint
)
(
end
-
tmp
-
1
),
cs
);
table
->
field
[
17
]
->
store
(
tmp
+
1
,
end
==
tmp
?
0
:
(
uint
)
(
end
-
tmp
-
1
),
cs
);
table
->
field
[
18
]
->
store
(
field
->
comment
.
str
,
field
->
comment
.
length
,
cs
);
table
->
field
[
18
]
->
store
(
field
->
comment
.
str
,
field
->
comment
.
length
,
cs
);
}
table
->
file
->
write_row
(
table
->
record
[
0
]);
table
->
file
->
write_row
(
table
->
record
[
0
]);
}
}
}
}
...
@@ -3111,6 +3109,7 @@ bool get_schema_tables_result(JOIN *join)
...
@@ -3111,6 +3109,7 @@ bool get_schema_tables_result(JOIN *join)
break
;
break
;
TABLE_LIST
*
table_list
=
tab
->
table
->
pos_in_table_list
;
TABLE_LIST
*
table_list
=
tab
->
table
->
pos_in_table_list
;
TABLE_LIST
*
save_next_global
=
table_list
->
next_global
;
TABLE_LIST
*
save_next_global
=
table_list
->
next_global
;
TABLE_LIST
**
query_tables_last
=
thd
->
lex
->
query_tables_last
;
if
(
table_list
->
schema_table
&&
thd
->
fill_derived_tables
())
if
(
table_list
->
schema_table
&&
thd
->
fill_derived_tables
())
{
{
...
@@ -3126,12 +3125,14 @@ bool get_schema_tables_result(JOIN *join)
...
@@ -3126,12 +3125,14 @@ bool get_schema_tables_result(JOIN *join)
thd
->
derived_tables
=
old_derived_tables
;
thd
->
derived_tables
=
old_derived_tables
;
thd
->
lock
=
sql_lock
;
thd
->
lock
=
sql_lock
;
table_list
->
next_global
=
save_next_global
;
table_list
->
next_global
=
save_next_global
;
thd
->
lex
->
query_tables_last
=
query_tables_last
;
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
thd
->
lock
=
sql_lock
;
thd
->
lock
=
sql_lock
;
thd
->
lex
->
sql_command
=
SQLCOM_SELECT
;
thd
->
lex
->
sql_command
=
SQLCOM_SELECT
;
thd
->
derived_tables
=
old_derived_tables
;
thd
->
derived_tables
=
old_derived_tables
;
table_list
->
next_global
=
save_next_global
;
table_list
->
next_global
=
save_next_global
;
thd
->
lex
->
query_tables_last
=
query_tables_last
;
}
}
}
}
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
...
...
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