Użytkownik Ed Leafe napisał:
> I just pushed a fix. I went with a minimally invasive approach, rather
> than something that always ran the code, since 99%+ of the time it isn't
> needed.
>
> It works with a PostgreSQL double precision column in my tests; let me
> know if it solves your issues.
>
I'm afraid it doesn't work.
I rather expected type based, not a field based resolution, but...
I can accept any working. What is the point. Your code is:
pythonType = self._types.get(field_name, type(field_val))
if pythonType is None or pythonType == type(None):
pythonType = self._types[field_name] =
dabo.db.getDataType(type(field_val))
self._fieldsToAlwaysCorrectType.append(field_name)
But first line always return some type (except None value)
and next condition is never meet, so _fieldsToAlwaysCorrectType remains
empty.
It could have sense if you use, e.g.:
pythonType = self._types.get(field_name, None)
in first line.
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]