changeset 320:af4106fca5d9

fixed misspelling of split(), thanks Igor
author Catherine Devlin <catherine.devlin@gmail.com>
date Wed, 01 Apr 2009 14:11:23 -0400
parents 3c58df9bcf14
children 0c83ddee3a5c
files sqlpython/mysqlpy.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)'