Closed (fixed)
Project:
Object driver
Version:
5.x-1.0-beta
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2007 at 12:32 UTC
Updated:
27 Sep 2007 at 02:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedwell, I'm a bit surprised that the original version doesn't work, but truthfully i've never tested it with a prefixed table. I'll look into this.
in terms of how to make a patch - you need diff or cvs. See: http://drupal.org/patch
Comment #2
pwolanin commentedMaybe be simpler to make a change from this:
db_query("INSERT INTO {$table} ("to:
db_query("INSERT INTO {". $table ."} ("Comment #3
pwolanin commentedhere's a patch
Comment #4
pwolanin commentedwhoops - found an even more serious bug. an empty table name was being passed to db_next_id.
Note, this patch will break things unless you manually update the sequences table (under MySQL). Maybe I'll roll some update code.
Comment #5
pwolanin commenteda more complete patch, but the update code doesn't seem quite right yet.
Comment #6
pwolanin commentedah a bug with update_sql, perhaps. This patch should work.
Comment #7
pwolanin commentedpatch...
Comment #8
pwolanin commentedAnd this one should actually work. Please try it out.
Comment #9
pwolanin commentedhmmm, doing badly remembering to attach...
Comment #10
coupet commentedsubscribing
Comment #11
pwolanin commentedcommitted patch in #9
Comment #12
(not verified) commented