# HG changeset patch # User Catherine Devlin # Date 1238609483 14400 # Node ID af4106fca5d94af5fbc017df473cfb14bac90ebc # Parent 3c58df9bcf14ee3c62c9e23a3fb0900eb8837c2e fixed misspelling of split(), thanks Igor diff -r 3c58df9bcf14 -r af4106fca5d9 sqlpython/mysqlpy.py --- a/sqlpython/mysqlpy.py Tue Mar 31 16:57:50 2009 -0400 +++ b/sqlpython/mysqlpy.py Wed Apr 01 14:11:23 2009 -0400 @@ -144,7 +144,7 @@ def do_explain(self,args): '''prints the plan of a given statement from the sql cache. 1 parameter: sql_id, see also do_sql ''' - words = args.sqlit() + words = args.split() if len(words) > 2 and words[0].lower() == 'plan' and words[1].lower() == 'for': self.curs.execute('explain %s' % args) print 'Explained. (see plan table)'