[#7084] SQL portability, column does not exist - with shares.
Summary SQL portability, column does not exist - with shares.
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 2. Medium
Owners Chuck Hagenbuch <chuck (at) horde (dot) org>
Requester barryp (at) medicine (dot) nodak (dot) edu
Created 07/19/2008 (124 days ago)
Due
Updated 07/20/2008 (123 days ago)
Assigned 07/20/2008 (123 days ago)
Resolved 07/20/2008 (123 days ago)
Attachments
Milestone 3.2.2
Patch No

History
07/20/2008 Chuck Hagenbuch Comment #4
State ⇒ Resolved
Reply to this comment
Fixed for 3.2.2 - thanks for the report.
07/20/2008 CVS Commit Comment #3 Reply to this comment
07/20/2008 Chuck Hagenbuch Milestone ⇒ 3.2.2
 
07/20/2008 Chuck Hagenbuch Patch ⇒
 
07/20/2008 Chuck Hagenbuch Deleted Attachment: horde.patch
 
07/20/2008 Chuck Hagenbuch Comment #2
State ⇒ Assigned
Assigned to Chuck Hagenbuch
Reply to this comment
I have this fixed locally.
07/19/2008 barryp (at) medicine (dot) nodak (dot) edu Comment #1
New Attachment: horde.patch
Patch ⇒ 1
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ SQL portability, column does not exist - with shares.
Type ⇒ Bug
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Reply to this comment
I'm getting this error with PostgreSQL 8.3.3, after I've added myself 
to a group.  I believe it's the same deal as with bug [#7075].  I've 
attached a patch to show where the problem is, not quite sure what the 
cool way to do quoting would be in this case.

----------
ERROR:  column "3" does not exist at character 311

STATEMENT:  SELECT s.*  FROM nag_shares s  LEFT JOIN nag_shares_users 
AS u ON u.share_id = s.share_id LEFT JOIN
nag_shares_groups AS g ON g.share_id = s.share_id WHERE s.share_owner 
= 'barryp' OR (s.perm_creator & 4) <> 0 OR
(s.perm_default & 4) <> 0 OR ( u.user_uid = 'barryp' AND (u.perm & 4) 
<> 0) OR ( g.group_uid IN ("3") AND (g.perm & 4) <> 0)
ORDER BY s.attribute_name ASC
-------------