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
82f70028
Commit
82f70028
authored
Nov 17, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-error-5.0
parents
8d44fb36
eac8c7be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+6
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+4
-3
sql/sql_show.cc
sql/sql_show.cc
+11
-7
No files found.
mysql-test/r/information_schema.result
View file @
82f70028
...
@@ -439,3 +439,9 @@ v
...
@@ -439,3 +439,9 @@ v
call px5()//
call px5()//
v
v
9
9
create table t1 (a int not null auto_increment,b int, primary key (a));
insert into t1 values (1,1),(NULL,3),(NULL,4);
select AUTO_INCREMENT from information_schema.tables where table_name = 't1';
AUTO_INCREMENT
4
drop table t1;
mysql-test/t/information_schema.test
View file @
82f70028
...
@@ -218,7 +218,8 @@ call px5()//
...
@@ -218,7 +218,8 @@ call px5()//
call
px5
()
//
call
px5
()
//
delimiter
;
//
delimiter
;
//
create
table
t1
(
a
int
not
null
auto_increment
,
b
int
,
primary
key
(
a
));
insert
into
t1
values
(
1
,
1
),(
NULL
,
3
),(
NULL
,
4
);
select
AUTO_INCREMENT
from
information_schema
.
tables
where
table_name
=
't1'
;
drop
table
t1
;
\ No newline at end of file
sql/sql_show.cc
View file @
82f70028
...
@@ -2116,7 +2116,7 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
...
@@ -2116,7 +2116,7 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
}
}
table
->
field
[
11
]
->
store
((
longlong
)
file
->
index_file_length
);
table
->
field
[
11
]
->
store
((
longlong
)
file
->
index_file_length
);
table
->
field
[
12
]
->
store
((
longlong
)
file
->
delete_length
);
table
->
field
[
12
]
->
store
((
longlong
)
file
->
delete_length
);
if
(
table
->
found_next_number_field
)
if
(
show_
table
->
found_next_number_field
)
{
{
show_table
->
next_number_field
=
show_table
->
found_next_number_field
;
show_table
->
next_number_field
=
show_table
->
found_next_number_field
;
show_table
->
next_number_field
->
reset
();
show_table
->
next_number_field
->
reset
();
...
@@ -2196,13 +2196,17 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
...
@@ -2196,13 +2196,17 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
table
->
field
[
19
]
->
store
(
option_buff
+
1
,
table
->
field
[
19
]
->
store
(
option_buff
+
1
,
(
ptr
==
option_buff
?
0
:
(
ptr
==
option_buff
?
0
:
(
uint
)
(
ptr
-
option_buff
)
-
1
),
cs
);
(
uint
)
(
ptr
-
option_buff
)
-
1
),
cs
);
{
char
*
comment
=
show_table
->
file
->
char
*
comment
=
show_table
->
file
->
update_table_comment
(
show_table
->
comment
);
update_table_comment
(
show_table
->
comment
);
if
(
comment
)
{
table
->
field
[
20
]
->
store
(
comment
,
strlen
(
comment
),
cs
);
table
->
field
[
20
]
->
store
(
comment
,
strlen
(
comment
),
cs
);
if
(
comment
!=
show_table
->
comment
)
if
(
comment
!=
show_table
->
comment
)
my_free
(
comment
,
MYF
(
0
));
my_free
(
comment
,
MYF
(
0
));
}
}
}
}
table
->
file
->
write_row
(
table
->
record
[
0
]);
table
->
file
->
write_row
(
table
->
record
[
0
]);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
...
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