Changeset 1717 for pykota/trunk/pykota/storages/pgstorage.py
- Timestamp:
- 09/15/04 00:29:13 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r1520 r1717 22 22 # 23 23 # $Log$ 24 # Revision 1.37 2004/09/14 22:29:12 jalet 25 # First version of dumpykota. Works fine but only with PostgreSQL backend 26 # for now. 27 # 24 28 # Revision 1.36 2004/06/03 23:14:11 jalet 25 29 # Now stores the job's size in bytes in the database. … … 196 200 self.tool.logdebug("Transaction aborted.") 197 201 198 def do Search(self, query) :199 """Does a search query."""202 def doRawSearch(self, query) : 203 """Does a raw search query.""" 200 204 query = query.strip() 201 205 if not query.endswith(';') : … … 207 211 raise PyKotaStorageError, msg 208 212 else : 209 if (result is not None) and (result.ntuples() > 0) : 210 return result.dictresult() 213 return result 211 214 215 def doSearch(self, query) : 216 """Does a search query.""" 217 result = self.doRawSearch(query) 218 if (result is not None) and (result.ntuples() > 0) : 219 return result.dictresult() 220 212 221 def doModify(self, query) : 213 222 """Does a (possibly multiple) modify query."""