I get this with SQLite when installing the module:
PDOException: SQLSTATE[HY000]: General error: 1 no such function: UNIX_TIMESTAMP: INSERT INTO {user_revision} (uid, vid, log, timestamp, authorid, name, mail, theme, signature, signature_format, status, timezone, language, picture, data) SELECT u.uid, u.vid, '', UNIX_TIMESTAMP(), u.uid, u.name, u.mail, u.theme, u.signature, u.signature_format, u.status, u.timezone, u.language, u.picture, u.data FROM {users} u WHERE u.vid=0 AND u.uid <> 0; Array ( ) in user_revision_enable() (line 41 of ../sites/all/modules/contrib/user_revision/user_revision.module).
This is because SQLite does not know UNIX_TIMESTAMP().
All db_query() calls should be rewritten to use db_select(), db_insert() or something like that.
Comment | File | Size | Author |
---|---|---|---|
#2 | user_revision-2091155-2-dynamic_queries.patch | 10.83 KB | czigor |
#1 | user_revision-2091155-1-dynamic_queries.patch | 10.47 KB | czigor |
Comments
Comment #1
czigor CreditAttribution: czigor commentedComment #2
czigor CreditAttribution: czigor commentedBetter anonymous user handling.
Comment #3
attiks CreditAttribution: attiks commentedThank you very much, fixed
Comment #4
czigor CreditAttribution: czigor commentedHow has this been fixed? The last commit I see here http://drupalcode.org/project/user_revision.git is from 6 months ago.
Comment #5
attiks CreditAttribution: attiks commentedSomething went wrong with the push, pushed again and thanks again
Comment #6
czigor CreditAttribution: czigor commentedOK, thanks!