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.