diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-09 20:01:39 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-09 20:01:39 +0000 |
commit | a6a6e5add9df17221ef7031f08928439a60096d3 (patch) | |
tree | 8ebbb6afa3d03791b86d3d9e1d049ddddd3b8b8b /includes | |
parent | e1022123bb393e93f3686257c3b630c31061c363 (diff) | |
download | brdo-a6a6e5add9df17221ef7031f08928439a60096d3.tar.gz brdo-a6a6e5add9df17221ef7031f08928439a60096d3.tar.bz2 |
#174170 by Shiny: different method to insert an action row with default values, so it works with PostgreSQL too
Diffstat (limited to 'includes')
-rw-r--r-- | includes/actions.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/actions.inc b/includes/actions.inc index 2c2e41afd..2e70c6bda 100644 --- a/includes/actions.inc +++ b/includes/actions.inc @@ -332,7 +332,7 @@ function actions_save($function, $type, $params, $desc, $aid = NULL) { else { // aid is the callback for singleton actions so we need to keep a // separate table for numeric aids. - db_query('INSERT INTO {actions_aid} () VALUES ()'); + db_query('INSERT INTO {actions_aid} VALUES (default)'); $aid = db_last_insert_id('actions_aid', 'aid'); db_query("INSERT INTO {actions} (aid, callback, type, parameters, description) VALUES (%d, '%s', '%s', '%s', '%s')", $aid, $function, $type, $serialized, $desc); watchdog('actions', 'Action %action created.', array('%action' => $desc)); |