summaryrefslogtreecommitdiff
path: root/storage/perfschema/table_users.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/table_users.cc')
-rw-r--r--storage/perfschema/table_users.cc29
1 files changed, 4 insertions, 25 deletions
diff --git a/storage/perfschema/table_users.cc b/storage/perfschema/table_users.cc
index 1f6b861342d..134ebb08d26 100644
--- a/storage/perfschema/table_users.cc
+++ b/storage/perfschema/table_users.cc
@@ -24,29 +24,6 @@
THR_LOCK table_users::m_table_lock;
-static const TABLE_FIELD_TYPE field_types[]=
-{
- {
- { C_STRING_WITH_LEN("USER") },
- { C_STRING_WITH_LEN("char(16)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("CURRENT_CONNECTIONS") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("TOTAL_CONNECTIONS") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- }
-};
-
-TABLE_FIELD_DEF
-table_users::m_field_def=
-{ 3, field_types, 0, (uint*) 0 };
-
PFS_engine_table_share
table_users::m_share=
{
@@ -59,8 +36,10 @@ table_users::m_share=
1000, /* records */
sizeof(PFS_simple_index), /* ref length */
&m_table_lock,
- &m_field_def,
- false /* checked */
+ { C_STRING_WITH_LEN("CREATE TABLE users("
+ "USER CHAR(16) collate utf8_bin default null,"
+ "CURRENT_CONNECTIONS bigint not null,"
+ "TOTAL_CONNECTIONS bigint not null)") }
};
PFS_engine_table* table_users::create()