(more) db prefix abstraction issues

schuyler1d - May 15, 2008 - 15:17
Project:Outline Designer
Version:5.x-1.2-1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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');

AttachmentSize
prefix_abstraction.patch2.35 KB

#1

jbrauer - May 16, 2008 - 18:11
Status:active» reviewed & tested by the community

This method worked for solving our problems with prefixed columns.

#2

btopro - May 22, 2008 - 13:37
Status:reviewed & tested by the community» fixed

#3

Anonymous (not verified) - June 5, 2008 - 13:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.