[Zope-DB] CVS: Products/DCOracle2 - SP.py:1.8

Matthew T. Kromer matt@zope.com
Tue, 9 Oct 2001 14:05:03 -0400


Update of /cvs-repository/Products/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv28081

Modified Files:
	SP.py 
Log Message:
Tweaked a comment a while ago about a problem where stored procedures don't
wrap their results like query() does for ZOracleDA.  Problem still exists.
Only affects SP's returning LOBs etc.


=== Products/DCOracle2/SP.py 1.7 => 1.8 ===
         if not getSecurityManager().checkPermission(
             'Execute %s Stored Procedures' % dbstring, self):
+            # Ugh raising a string error
             raise 'Unauthorized', "You are not authorized to access this resource"
         self._register()
         if getattr(self,"_v_proc",None) is None: self._connect()
         try:
+            # Note, this does not do result promotion like the DA query will
+            # which is probably bad.  OracleDates in particular look like
+            # DateTimes but arent at all the same!
             return apply(self._v_proc,args,kw)
         except:
             self._v_proc = None