[Zope] Zope2 and ZSybaseDA problem

Brian Hooper brian@garage.co.jp
Thu, 26 Aug 1999 14:49:59 +0900


Hi Chad,

I added

        execute_m=regex.compile('[\0- ]*execute[\0- ]+',regex.casefold).match

to the beginning of the query() method in db.py, and then added this to
a later part of the same function:

		    r=c.execute(query_string)
		    result=c.fetchmany(max_rows)
		    desc=c.description[0]
+		elif execute_m(query_string) >= 0:
+		    result=db.execute(query_string)[0]
+		    desc=db.description[0]
		else:
		    r=db.execute(query_string)

Sorry this isn't a real patch, I'm in kind of a hurry now.
I don't know if this is the best way to do this, but in the meantime
at least it gives some results!

--Brian