mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

Column name may include a space #190

Closed graft closed 3 years ago

graft commented 4 years ago

If you specify an attribute with a space in it (I tried "age "), it (1) saves into the attribute table, (2) makes a column without a space (e.g. called "age"), (3) fails on reboot because it can't find a column named "age ".

Remediating this in the console is also annoying because attribute.save tries to update using the trio project_name, model_name, attribute_name, making it unable to update attribute_name itself. I had to go into postgres to fix the attributes table.

coleshaw commented 3 years ago

Should be fixed with mountetna/monoetna#108.