Closed (fixed)
Project:
Inactive User
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2006 at 10:33 UTC
Updated:
2 Jun 2008 at 16:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
Crell commentedI'm afraid I don't use or know from PostgreSQL either. I'm willing to commit a PostgreSQL patch, but not until someone who actually uses PostgreSQL has reviewed it and set it RTBC.
Any PostgreSQL users, your input here is appreciated. :-)
Comment #2
Crell commentedComment #3
Crell commentedNow that there is a Drupal 5 release, new features will only be accepted against 5.x.
Comment #4
HorsePunchKid commentedThis patch should get it working in Postgres, though I have not managed to test it yet. It also includes a number of "I can't believe MySQL allows that!" fixes, for what it's worth. For example,
&&and!=are not operators that you'll see work in any other dialect of SQL, as far as I'm aware.Patch is against the latest official release.
Comment #5
Crell commentedThanks, HorsePunch. Can you split the patch into two, though? As I said, I don' know from Postgres so I don't want to commit a Postgres patch until someone who uses Postgres has reviewed it, but I'm certainly game for "proper SQL" cleanup. Thanks.
Comment #6
HorsePunchKid commentedGood suggestion, Crell. The only modification I made that was explicitly aimed at supporting Postgres was the addition of a case to
inactive_user.install. For some reason—I'm assuming a local problem at this point—inactive_user_install()never gets called when I enable the module, with or without my patch. So all I can confirm is that if I copy theCREATEverbatim from the install function and run it in Postgres, the module works fine.Any insight into the install behavior would be much appreciated; I haven't had this kind of problem with other modules before.
Comment #7
HorsePunchKid commentedAnd here is a patch with just the changes to
inactive_user.module. The changes are straightforward, replacing unusual syntax like '&&' with 'AND'. I have tested it a bit, and it seems to work fine. You can test this patch independently of the above patch; since I suspect Postgres support will require it, I figured I'd keep it in this issue.Comment #8
jaydub commentedHorsePunchKid's patch applied clean for me and everything looks good for PostgreSQL.
Actually with the exception of the '&&' most of the rest of the syntax _does_ work in
PostgreSQL although for the sake of portability the changes in the patch do make for
the most portable SQL possible here.
I've also attached my own roll of an inactive_user.install patch. This patch includes a few
comments for the functions and an inactive_user_uninstall() implementation.
Comment #9
deekayen commentedthe && and the install hook for postgres table were the only things really needed, but the other stuff was nice, too
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.