From 43b70fc86b1c7b0549a2902559be932ca361921b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 18 Mar 2007 22:35:19 +0000 Subject: - added db modules to genned docstrings - had to tweak out latest MS-SQL module change. cant do ImportErrors right now until module importing is moved to the connection phase across all dialects. - took out "his" from url docstrings - postgres doesnt do an import * --- lib/sqlalchemy/databases/mysql.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 2df16c361..e2784a136 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -426,13 +426,8 @@ class MySQLDialect(ansisql.ANSIDialect): raise exceptions.NoSuchTableError(table.name) def moretableinfo(self, connection, table): - """Return (tabletype, {colname:foreignkey,...}) - execute(SHOW CREATE TABLE child) => - CREATE TABLE `child` ( - `id` int(11) default NULL, - `parent_id` int(11) default NULL, - KEY `par_ind` (`parent_id`), - CONSTRAINT `child_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADE\n) TYPE=InnoDB + """runs SHOW CREATE TABLE to get foreign key/options information about the table. + """ c = connection.execute("SHOW CREATE TABLE " + table.fullname, {}) desc_fetched = c.fetchone()[1] -- cgit v1.2.1