diff -r ea1360938033 -r daf46963f4fe server/sources/native.py --- a/server/sources/native.py Thu Sep 22 19:13:58 2011 +0200 +++ b/server/sources/native.py Thu Sep 22 17:29:40 2011 +0200 @@ -413,7 +413,8 @@ self.init_creating(source_entity._cw.cnxset) try: # test if 'asource' column exists - source_entity._cw.system_sql('SELECT asource FROM entities LIMIT 1') + query = self.dbhelper.sql_add_limit_offset('SELECT asource FROM entities', 1) + source_entity._cw.system_sql(query) except Exception, ex: self.eid_type_source = self.eid_type_source_pre_131