Closed (fixed)
Project:
Location
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2006 at 07:48 UTC
Updated:
31 Mar 2007 at 04:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
scott.mclewin commentedI remain interested in having this patch comitted. What additional information do you need from me?
Comment #2
ankur commentedHey Scott,
Are you trying to pass in a full table name, or a table alias? If an alias, then there is no need for the brackets. Also, we should write the patch in a way where the '.' between the table name (or alias) and the name of the column ('latitude' or 'longitude' in this case) is supplied by the code in this function rather than being passed as part of the tbl_prefix parameter.
Finally, instead calling the optional parameter $tbl_prefix, we should call it $table_alias if the parameter is intended to be an alias (which I think is the way to go) or just $table_name if the parameter is intended to be the table name.
W
Comment #3
scott.mclewin commented@ankur,
It is intended to be a table alias and I agree the name should be changed. I'll do that.
I'll also change the code to add the "." within the function.
As for the brackets
{$tbl_prefix}, to be clear those are not appearing in the output string. While not I cannot be 100% sure from your comment, it seems you were reading those as literals being included in the output. They are not. It's a php nomenclature to allow a variable to be directly against another, which I did to allow the default value of $tbl_prefix ("") to do nothing while allowing an alias to be correctly incorporated. My apologies if I am needlessly going over something you already knew.Scott
Comment #4
scott.mclewin commentedHere is the patch rolled again with the changes you requested.
Comment #5
ankur commentedApplied to DRUPAL-4-7 and DRUPAL-5.
Thanks for the patch.
Comment #6
scott.mclewin commentedNo problem. Thanks for committing it and the review.
Comment #7
(not verified) commented