Open MrTin opened 8 years ago
I haven't tested thoroughly on postgres, yet, so this is a good catch! The bug you referenced seems like it describes the problem. In order to get up and running I recommend using MySQL.
No doubt you will ask why I'm using binary data types here, though. And the answer is that I'm hoping to be able to cram more data into the db column than with simple text data types: Sadly waterline doesn't (to my knowledge) allow specifying the expected size of a column, so we get overflows with larger documents :/ This would also be a good thing to investigate, because I'm not convinced binary data types solve this problem, long-term-wise.
Apparently they allow you to specify the size, now. \o/
See https://github.com/hivejs/hive/issues/108
Also, I prefer keeping all issues in one place, since that makes organizing (assigning them to a milestone etc.) them easier. Perhaps one day we'll use our own bug tracker, but until then https://github.com/hivejs/hive/issues should do.
varchar
and text
are just aliases in Postgres. In Mysql, varchar
and text
are handled the same way by the Innodb engine, only difference is really that varchar
supports indexation and text
does not.
Unless we need an index on this (which I suppose not), I think the best solution would be to use atext
field for better support and, as time goes and if anyone experiences performance issues, I would optimize to each database accordingly.
Will post in the main repo in the future! Sorry about that :)
What happens?
The server crashes when newlines are being sent. It looks like it's related to the ORM adapter.
invalid input syntax for type bytea
. I tried using thewaterline-postgresql
adapter too but I could not even get that one to properly install. I also forcefully updated thewaterline
andsails-postgresql
packages to latest versions but it still crashed when sending newlines.I'm wondering if there's a module that needs to be activated within Postgres and what version you are running where it works?
Environment
Links
This is the stacktrace: