Closed (fixed)
Project:
Ooyala
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2012 at 14:00 UTC
Updated:
4 Jan 2013 at 06:41 UTC
Jump to comment: Most recent file
Line 316 of includes/ooyala.import.inc for both -1.x and -2.x branches should read:
$sql = 'SELECT nid, '.$field_name.' FROM {'.$table.'} WHERE '.$field_name.' IN ('.$placeholders.')';
or similar. The curly braces were getting interpreted when formerly inside double quotes as an alternate specification of the variable. So as long as you had no database table prefix, passing the table name without curly braces to db_query() worked. But if you do have a database table prefix, the query fails because the table is not wrapped in curly braces and therefore does not get altered by db_prefix_tables().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ooyala_import_db_prefix-1744316.patch | 544 bytes | quicksketch |
Comments
Comment #1
quicksketchThanks good suggestion. Fixed with this patch. Committed to both Drupal 6 branches.