server/sources/native.py
branchstable
changeset 5168 1ab032df5ca3
parent 5131 88b5ca8da928
child 5214 3285b6e3b930
equal deleted inserted replaced
5167:529861a73ec8 5168:1ab032df5ca3
   666             if result:
   666             if result:
   667                 return result[0]
   667                 return result[0]
   668         except:
   668         except:
   669             pass
   669             pass
   670         return None
   670         return None
       
   671 
       
   672     def make_temp_table_name(self, table):
       
   673         try: # XXX remove this once 
       
   674             return self.dbhelper.temporary_table_name(table)
       
   675         except AttributeError:
       
   676             import warnings
       
   677             warnings.warn('Please hg up logilab.database')
       
   678             return table
       
   679 
   671 
   680 
   672     def temp_table_def(self, selected, sol, table):
   681     def temp_table_def(self, selected, sol, table):
   673         return make_schema(selected, sol, table, self.dbhelper.TYPE_MAPPING)
   682         return make_schema(selected, sol, table, self.dbhelper.TYPE_MAPPING)
   674 
   683 
   675     def create_temp_table(self, session, table, schema):
   684     def create_temp_table(self, session, table, schema):