changeset 446:1cf1f69b2470

must puzzle out parsing of quoted strings
author catherine@Drou
date Tue, 09 Feb 2010 21:16:16 -0500
parents b34ea206c7d1
children 0b71da565ebe
files sqlpython/sqlpyPlus.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py	Tue Feb 09 13:48:24 2010 -0500
+++ b/sqlpython/sqlpyPlus.py	Tue Feb 09 21:16:16 2010 -0500
@@ -1355,9 +1355,9 @@
         arg = self.parsed(arg)
         import pdb; pdb.set_trace()
         try:
-            var, val = self.assignmentSplitter.split(arg.parsed.expanded, maxsplit=1)
+            var, val = self.assignmentSplitter.split(arg, maxsplit=1)
         except ValueError:
-            return False, arg.parsed.expanded.split()[-1] or None, None 
+            return False, str(arg).split()[-1] or None, None
         var = var.split()[-1]
         val = val.strip()
         if (len(val) > 1) and ((val[0] == val[-1] == "'") or (val[0] == val[-1] == '"')):