Hello,
I am currently working with OG, doing some custom modules that does heavy query rewriting using the hook_db_rewrite_sql(). For some weird use case, I add some JOIN statements in OG queries joining to itself SELECT ... FROM {og} og JOIN {og} ogb ... WHERE ... This works greats except with two of your queries in og.module which do not prefix the moderate field name in their WHERE clauses, which cause the queries to fail because of ambigous WHERE clause.
See patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| og.module-6.x-2.1-ambigous_where.patch | 1.11 KB | pounard |
Comments
Comment #1
pounardBetter title.
Comment #2
amitaibuCommitted, thanks.
Comment #3
pounardThanks to you!