[ Note: the included patch is against a file which already has #861016: Prevent urls from getting language treatment and #881164: Some pathauto stuff has the wrong 'src' URL applied. I hope that's OK. Let me know if not.]
PostgreSQL does not have the CONCAT function. So I changed it with a REPLACE function.
This has the added bonus of keeping the expected 'alias.src' value in sync with the output from openid_provider_user_path() (formerly known as openid_provider_user_url()) . It's not in sync currently, which caused #881164.
(And the use of '%user' as a replacement string, is arbitrary. The only reason I picked it, is that this is also used as an argument to openid_provider_user_path(), elsewhere in the code.)
The number 10 in the CAST ... AS CHAR(10) is arbitrary. (The maximum length of an uid.) Note you cannot do 'CAST ... AS CHAR' in Postgres, since that'll shorten the uid to one character. (Search drupal.org for 'cast varchar' if you want more examples.)
| Comment | File | Size | Author |
|---|---|---|---|
| openid_provider.pgsql_.patch | 1.1 KB | roderik |
Comments
Comment #1
grub3 commentedThanks for the fix. I applied the patch manually. And it works.
Comment #2
anarcat commentedpatch committed and pushed to 6.x branch.