Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2007 at 16:48 UTC
Updated:
25 Oct 2008 at 16:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
robertdouglass commenteddb_fetch_object returns a 0... so I cast it to an object so it gets cached. Other ideas are welcome.
Comment #2
catchThis also still applies, with offset.
Comment #3
robertdouglass commentedThere are no examples of this being used in contrib, but I ran into the caching issue with a client who has a proprietary module depending on this function. Rerolled patch to apply without offsets.
Comment #4
birdmanx35 commentedThis still works against HEAD.
Comment #5
drawk commentedStill applies with offset of 120 lines
Comment #6
catchBumping to D7, +1, needs a re-roll for dbtng since db_fetch_object is deprecated.
Comment #7
catchPatch doesn't actually touch the query, so this could be done with a wider conversion. Attached patch adds a reset parameter and some doc.
Comment #8
catchgrr
Comment #9
damien tournoud commentedFixed the documentation, converted the query to PDO, removed the ugly cast to object.
Comment #10
Anonymous (not verified) commentedPostponing for #254491: Standardize static caching to commit.
Comment #11
damien tournoud commentedPlease don't postpone little patches like this one in benefit of that kitten-killer. webchick groans about committing small patches, but in fact we know that she loves that.
Comment #12
catchStill applies cleanly, changes are good. RTBC.
Comment #13
webchickHm? I never groan about small patches. :D I groan about adding more $reset params to functions, but I agree that that other issue is going to take some time to sort out properly, and this function can benefit while we wait.
Committed with a couple small changes to the line spacing because I'm just that way. ;) Looking forward to seeing some or all of you in #254491: Standardize static caching so we can fix this properly.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.