server/sources/native.py
branchstable
changeset 7839 daf46963f4fe
parent 7787 d9607ae447d2
child 7879 9aae456abab5
equal deleted inserted replaced
7838:ea1360938033 7839:daf46963f4fe
   411 
   411 
   412     def init(self, activated, source_entity):
   412     def init(self, activated, source_entity):
   413         self.init_creating(source_entity._cw.cnxset)
   413         self.init_creating(source_entity._cw.cnxset)
   414         try:
   414         try:
   415             # test if 'asource' column exists
   415             # test if 'asource' column exists
   416             source_entity._cw.system_sql('SELECT asource FROM entities LIMIT 1')
   416             query = self.dbhelper.sql_add_limit_offset('SELECT asource FROM entities', 1)
       
   417             source_entity._cw.system_sql(query)
   417         except Exception, ex:
   418         except Exception, ex:
   418             self.eid_type_source = self.eid_type_source_pre_131
   419             self.eid_type_source = self.eid_type_source_pre_131
   419 
   420 
   420     def shutdown(self):
   421     def shutdown(self):
   421         if self._eid_creation_cnx:
   422         if self._eid_creation_cnx: