Closed (fixed)
Project:
Util
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2009 at 13:30 UTC
Updated:
12 Jan 2010 at 16:10 UTC
Jump to comment: Most recent file
Hi,
REPLACE INTO does not work on PostgreSQL, and I had just read through other code using drupal_write_record(). (twitter/twitter.inc)
So I copied those lines.
By the way, hook_schema should be named after the module, not after the table. (If you don't rename that function in system_module.install, drupal_get_schema('system_module_users') will return nothing, and drupal_write_record() will do nothing.)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal_write_recordCORRECT.patch | 1.76 KB | roderik |
| drupal_write_record.patch | 1.54 KB | roderik |
Comments
Comment #1
roderikwrong status
Comment #2
roderikOfcourse it helps if I take a few seconds to see what changes these effects have...
Here's a better patch.
Comment #3
nancydruCommitted - not tested.