From acd88b930952f2ea9b5d4f6e4de1cfd692236c86 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 9 Apr 2012 10:52:51 -0400 Subject: [PATCH] System tables tab, update license file --- sys/LICENSE | 10 +++++----- sys/db/drivers/mysql.php | 3 +-- sys/windows/widgets/db_tabs.php | 5 +++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sys/LICENSE b/sys/LICENSE index 3f27335..2c0bb65 100644 --- a/sys/LICENSE +++ b/sys/LICENSE @@ -2,8 +2,8 @@ DON'T BE A DICK PUBLIC LICENSE Version 1, December 2009 - Copyright (C) 2009 Philip Sturgeon - + Copyright (C) 2012 Timothy J Warren + Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. @@ -20,8 +20,8 @@ DON'T BE A DICK PUBLIC LICENSE 1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick. 2. If you become rich through modifications, related works/services, or supporting the original work, - share the love. Only a dick would make loads off this work and not buy the original works + share the love. Only a dick would make loads off this work and not buy the original works creator(s) a pint. - - 3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes + + 3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back. \ No newline at end of file diff --git a/sys/db/drivers/mysql.php b/sys/db/drivers/mysql.php index 1e25b07..be4487b 100644 --- a/sys/db/drivers/mysql.php +++ b/sys/db/drivers/mysql.php @@ -146,8 +146,7 @@ class MySQL extends DB_PDO { */ public function get_system_tables() { - //MySQL doesn't have system tables - return array(); + return array('information_schema'); } // -------------------------------------------------------------------------- diff --git a/sys/windows/widgets/db_tabs.php b/sys/windows/widgets/db_tabs.php index a89a78e..2c50bed 100644 --- a/sys/windows/widgets/db_tabs.php +++ b/sys/windows/widgets/db_tabs.php @@ -95,6 +95,11 @@ class DB_tabs extends GTKNotebook { self::_add_tab($conn, 'Tables', 'Table Name', 'get_tables'); } + // 'System Tables' Tab + { + self::_add_tab($conn, 'System Tables', 'Table Name', 'get_system_tables'); + } + // 'Views' Tab { self::_add_tab($conn, 'Views', 'View Name', 'get_views');