-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server crashes saving newlines to postgres #1
Comments
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 hivejs/hive#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. |
Unless we need an index on this (which I suppose not), I think the best solution would be to use a |
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:
The text was updated successfully, but these errors were encountered: