Strip quote from cursor dict because some SQLite version return it.

This commit is contained in:
Cédric Krier committed 2009-09-08 09:28:43 +02:00
1 parent 48ccca3ba9
commit a2ccd946a4
1 file changed
+2 -2
+2 -2
View File
@@ -1196,9 +1196,9 @@ class ModelSQL(ModelStorage):
cache.setdefault(self._name, {})
for data in datas:
for i in data.keys():
if i in ('_timestamp', '_datetime'):
if i.strip('"') in ('_timestamp', '_datetime'):
continue
field = self._columns[i]
field = self._columns[i.strip('"')]
if field._type in ('many2one',):
if field.model_name not in self.pool.object_name_list():
del data[i]