When installing fb_devel on a Postgres backend, an error is generated by this bit of code on line 18 in fb_devel.install
$count = db_query('SELECT count(uid) FROM {users} WHERE data LIKE :as OR data LIKE :iau OR data LIKE :fbu',
array(':as' => '%\"app_specific\"%',
':iau' => '%\"is_app_user\"%',
':fbu' => '%\"fbu\"%'))->fetchField();
The error is: ERROR: invalid input syntax for type bytea
This is due to the backslash characters.
I was able to remove the error by removing the backslashes, but not being familiar with the system, I don't know if that breaks something else.
I believe they are unnecessary though.
Comments
Comment #1
Dave Cohen commentedThe rules about escaping might have changed. I'll have to test that on mysql before committing. Thanks.
That code is about catching erroneous data that was once stored in the serialized user data. Might be safe to get rid of it entirely.
Comment #2
aacraig commentedI've created a patch for this from the latest code base on git.
Comment #3
aacraig commentedThis patch includes the install file changes, as well as a similar patch in .module.
I will continue to add patches in this thread with all of the changes necessary as I find them.