6.0.0-beta1
7/17/25

[#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 (at) horde (dot) org
Requester barryp (at) medicine (dot) nodak (dot) edu
Created 07/19/2008 (6207 days ago)
Due
Updated 07/20/2008 (6206 days ago)
Assigned 07/20/2008 (6206 days ago)
Resolved 07/20/2008 (6206 days ago)
Github Issue Link
Github Pull Request
Milestone 3.2.2
Patch No

History
07/20/2008 02:20:12 PM Chuck Hagenbuch Comment #4
State ⇒ Resolved
Reply to this comment
Fixed for 3.2.2 - thanks for the report.
07/20/2008 04:38:18 AM Chuck Hagenbuch Milestone ⇒ 3.2.2
 
07/20/2008 04:37:48 AM Chuck Hagenbuch Patch ⇒ No
 
07/20/2008 04:37:41 AM Chuck Hagenbuch Deleted Original Message
 
07/20/2008 04:37:30 AM Chuck Hagenbuch Comment #2
State ⇒ Assigned
Assigned to Chuck Hagenbuch
Reply to this comment
I have this fixed locally.
07/19/2008 06:00:20 PM barryp (at) medicine (dot) nodak (dot) edu Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ SQL portability, column does not exist - with shares.
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: horde.patch
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

-------------

Saved Queries