You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dialect specific types not handled on insert if field is aliased #4431
Dialect specific types (like for example geometry on PG) are not parsed/handled on INSERTS if they belong to a model attribute which is aliased (i.e. the attribute name is different to the db column name).
expected behaviour
After saving an entry the attribute with type geometry would contain a GeoJSON object
broken behaviour
After saving an entry the attribute with type geometry does not contain a GeoJSON object but the raw geometry value.
Details
This happens because the map that holds the dialect specific attributes in the model [1] uses as keys the alias (not the db column names) but the key used to check if a column in the response rows is dialect specific [2] has the value of the db column.
Activity
bug(datatypes) Fix parsing of aliassed geometry field. Closes #4431
janmeier commentedon Sep 9, 2015
I've added the test in 31da456, which is part of #4186
madtrick commentedon Sep 10, 2015
@jamelt 👍
bug(datatypes) Fix parsing of aliassed geometry field. Closes #4431
bug(datatypes) Fix parsing of aliassed geometry field. Closes #4431