changeset 277:6ffe31149306 1.6.1

now passing tests
author catherine@Elli.myhome.westell.com
date Wed, 18 Mar 2009 23:57:02 -0400
parents 0b7031c2229e
children c28fe53857da
files sqlpython/exampleSession.txt sqlpython/sqlpyPlus.py
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/exampleSession.txt	Wed Mar 18 22:01:23 2009 -0400
+++ b/sqlpython/exampleSession.txt	Wed Mar 18 23:57:02 2009 -0400
@@ -281,11 +281,11 @@
 
 1 row selected.
 
-0:testschema@orcl> \di
+0:testschema@orcl> \di play
 
-INDEX_NAME INDEX_TYPE
----------- ----------
-XPK_PLAY   NORMAL
+OWNER      INDEX_NAME INDEX_TYPE
+---------- ---------- ----------
+TESTSCHEMA XPK_PLAY   NORMAL    
 
 1 row selected.
 
--- a/sqlpython/sqlpyPlus.py	Wed Mar 18 22:01:23 2009 -0400
+++ b/sqlpython/sqlpyPlus.py	Wed Mar 18 23:57:02 2009 -0400
@@ -369,7 +369,7 @@
     def bind(self):
         for (idx, colname) in enumerate(self.resultset.colnames):
             self.resultset.pystate['binds'][colname] = self[idx]
-            self.resultset.pystate['binds'][idx+1] = self[idx]
+            self.resultset.pystate['binds'][str(idx+1)] = self[idx]
               
 class sqlpyPlus(sqlpython.sqlpython):
     defaultExtension = 'sql'