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
bbd27199
Commit
bbd27199
authored
Mar 25, 2005
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#9317: Wrong count for tables in INFORMATION_SCHEMA(fix after review)
parent
6ec48091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
sql/sql_show.cc
sql/sql_show.cc
+5
-13
No files found.
sql/sql_show.cc
View file @
bbd27199
...
...
@@ -1988,9 +1988,7 @@ bool store_schema_shemata(THD* thd, TABLE *table, const char *db_name,
restore_record
(
table
,
s
->
default_values
);
table
->
field
[
1
]
->
store
(
db_name
,
strlen
(
db_name
),
system_charset_info
);
table
->
field
[
2
]
->
store
(
cs_name
,
strlen
(
cs_name
),
system_charset_info
);
if
(
schema_table_store_record
(
thd
,
table
))
return
1
;
return
0
;
return
schema_table_store_record
(
thd
,
table
);
}
...
...
@@ -2231,9 +2229,7 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
}
}
}
if
(
schema_table_store_record
(
thd
,
table
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
schema_table_store_record
(
thd
,
table
));
}
...
...
@@ -2582,8 +2578,7 @@ bool store_schema_proc(THD *thd, TABLE *table, TABLE *proc_table,
get_field
(
thd
->
mem_root
,
proc_table
->
field
[
15
],
&
tmp_string
);
table
->
field
[
18
]
->
store
(
tmp_string
.
ptr
(),
tmp_string
.
length
(),
cs
);
table
->
field
[
19
]
->
store
(
definer
,
strlen
(
definer
),
cs
);
if
(
schema_table_store_record
(
thd
,
table
))
return
1
;
return
schema_table_store_record
(
thd
,
table
);
}
}
return
0
;
...
...
@@ -2761,8 +2756,7 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables,
table
->
field
[
5
]
->
store
(
"YES"
,
3
,
cs
);
else
table
->
field
[
5
]
->
store
(
"NO"
,
2
,
cs
);
if
(
schema_table_store_record
(
thd
,
table
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
schema_table_store_record
(
thd
,
table
));
}
}
else
...
...
@@ -2787,9 +2781,7 @@ bool store_constraints(THD *thd, TABLE *table, const char *db,
table
->
field
[
3
]
->
store
(
db
,
strlen
(
db
),
cs
);
table
->
field
[
4
]
->
store
(
tname
,
strlen
(
tname
),
cs
);
table
->
field
[
5
]
->
store
(
con_type
,
con_len
,
cs
);
if
(
schema_table_store_record
(
thd
,
table
))
return
1
;
return
0
;
return
schema_table_store_record
(
thd
,
table
);
}
...
...
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