queries of the form:
db_query('Select node.title from {node}');
will fail on prefixed dbs because 'node.title' is not a valid table.column. They should always be in the form
db_query('Select n.title from {node} AS n');

CommentFileSizeAuthor
prefix_abstraction.patch2.35 KBschuyler1d

Comments

jbrauer’s picture

Status: Active » Reviewed & tested by the community

This method worked for solving our problems with prefixed columns.

btopro’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.