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
163f272d
Commit
163f272d
authored
Oct 06, 2006
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#23013 make INFORMATION_SCHEMA.FILES easily usable by other engines
parent
276aaa21
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
194 deletions
+149
-194
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+100
-194
sql/mysql_priv.h
sql/mysql_priv.h
+39
-0
sql/sql_show.cc
sql/sql_show.cc
+10
-0
No files found.
sql/ha_ndbcluster.cc
View file @
163f272d
This diff is collapsed.
Click to expand it.
sql/mysql_priv.h
View file @
163f272d
...
@@ -2033,6 +2033,45 @@ inline void kill_delayed_threads(void) {}
...
@@ -2033,6 +2033,45 @@ inline void kill_delayed_threads(void) {}
#endif
#endif
/* Used by handlers to store things in schema tables */
/* Used by handlers to store things in schema tables */
#define IS_FILES_FILE_ID 0
#define IS_FILES_FILE_NAME 1
#define IS_FILES_FILE_TYPE 2
#define IS_FILES_TABLESPACE_NAME 3
#define IS_FILES_TABLE_CATALOG 4
#define IS_FILES_TABLE_SCHEMA 5
#define IS_FILES_TABLE_NAME 6
#define IS_FILES_LOGFILE_GROUP_NAME 7
#define IS_FILES_LOGFILE_GROUP_NUMBER 8
#define IS_FILES_ENGINE 9
#define IS_FILES_FULLTEXT_KEYS 10
#define IS_FILES_DELETED_ROWS 11
#define IS_FILES_UPDATE_COUNT 12
#define IS_FILES_FREE_EXTENTS 13
#define IS_FILES_TOTAL_EXTENTS 14
#define IS_FILES_EXTENT_SIZE 15
#define IS_FILES_INITIAL_SIZE 16
#define IS_FILES_MAXIMUM_SIZE 17
#define IS_FILES_AUTOEXTEND_SIZE 18
#define IS_FILES_CREATION_TIME 19
#define IS_FILES_LAST_UPDATE_TIME 20
#define IS_FILES_LAST_ACCESS_TIME 21
#define IS_FILES_RECOVER_TIME 22
#define IS_FILES_TRANSACTION_COUNTER 23
#define IS_FILES_VERSION 24
#define IS_FILES_ROW_FORMAT 25
#define IS_FILES_TABLE_ROWS 26
#define IS_FILES_AVG_ROW_LENGTH 27
#define IS_FILES_DATA_LENGTH 28
#define IS_FILES_MAX_DATA_LENGTH 29
#define IS_FILES_INDEX_LENGTH 30
#define IS_FILES_DATA_FREE 31
#define IS_FILES_CREATE_TIME 32
#define IS_FILES_UPDATE_TIME 33
#define IS_FILES_CHECK_TIME 34
#define IS_FILES_CHECKSUM 35
#define IS_FILES_STATUS 36
#define IS_FILES_EXTRA 37
void
init_fill_schema_files_row
(
TABLE
*
table
);
bool
schema_table_store_record
(
THD
*
thd
,
TABLE
*
table
);
bool
schema_table_store_record
(
THD
*
thd
,
TABLE
*
table
);
#endif
/* MYSQL_SERVER */
#endif
/* MYSQL_SERVER */
...
...
sql/sql_show.cc
View file @
163f272d
...
@@ -5418,6 +5418,16 @@ ST_FIELD_INFO files_fields_info[]=
...
@@ -5418,6 +5418,16 @@ ST_FIELD_INFO files_fields_info[]=
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
};
};
void
init_fill_schema_files_row
(
TABLE
*
table
)
{
int
i
;
for
(
i
=
0
;
files_fields_info
[
i
].
field_name
!=
NULL
;
i
++
)
table
->
field
[
i
]
->
set_null
();
table
->
field
[
IS_FILES_STATUS
]
->
set_notnull
();
table
->
field
[
IS_FILES_STATUS
]
->
store
(
"NORMAL"
,
6
,
system_charset_info
);
}
ST_FIELD_INFO
referential_constraints_fields_info
[]
=
ST_FIELD_INFO
referential_constraints_fields_info
[]
=
{
{
{
"CONSTRAINT_CATALOG"
,
FN_REFLEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
0
},
{
"CONSTRAINT_CATALOG"
,
FN_REFLEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
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