-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgres gets really sad when you put null bytes into character columns. With this change new schema will use binary columns which work fine in postgres.
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e19f55c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change has caused me days of issues :) I've moved to developing on a new machine using the GoogleAppEngine (GAE) SDK, it does not behave nicely with the php data wrapper used to convert the values to PHP when retrieved from the database (Core/Database/Type/BinaryType.php). I've fixed for my development by using the original 'text' column type - I don't know what to suggest as a long term solution as php://data is unsupported.
https://cloud.google.com/appengine/docs/php/runtime#PHP_Stream_wrappers
e19f55c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't either. Sounds like you'll have to use a custom BinaryType on Google App Engine.
e19f55c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'll try and invest some time in creating a more solid work around soon.