summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-03-18 22:35:19 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-03-18 22:35:19 +0000
commit43b70fc86b1c7b0549a2902559be932ca361921b (patch)
tree1435c517cecc676ffb8b490082b87933730276a1 /lib/sqlalchemy/databases/mysql.py
parent8f788f683ba64e7e0c495454883ca18dd2ae5f11 (diff)
downloadsqlalchemy-43b70fc86b1c7b0549a2902559be932ca361921b.tar.gz
- 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 *
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py9
1 files changed, 2 insertions, 7 deletions
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]