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.)

Comments

roderik’s picture

Status: Postponed » Needs review

wrong status

roderik’s picture

StatusFileSize
new1.76 KB

Ofcourse it helps if I take a few seconds to see what changes these effects have...

Here's a better patch.

nancydru’s picture

Status: Needs review » Fixed

Committed - not tested.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.