Closed
Bug 299880
Opened 19 years ago
Closed 19 years ago
User.pm fails with locate() function if using PostgreSQL
Categories
(Bugzilla :: User Accounts, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 292718
People
(Reporter: jd, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4
User.pm -> Line 1138
PostgreSQL does not have a locate() function. It uses strpos().
Reproducible: Always
Steps to Reproduce:
1. Install for PostgreSQL
2. Try to add a new user
3.
Actual Results:
An error occurs about missing locate() function
Expected Results:
Completely untested but:
my $sth = $dbh->prepare(
"SELECT eventdata
FROM tokens
WHERE tokentype = 'emailold'
AND SUBSTRING(eventdata, 1, (strpos(eventdata, ':') - 1)) = ?
OR SUBSTRING(eventdata, (strpos(eventdata, ':') + 1)) = ?");
I also had to add a default of now() to the refreshed_when column in profiles as
PostgreSQL enforces NOT NULL.| Reporter | ||
Updated•19 years ago
|
Version: unspecified → 2.19.3
Comment 1•19 years ago
|
||
Yep. :-) And I've fixed it. :-) *** This bug has been marked as a duplicate of 292718 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•