From a6a6e5add9df17221ef7031f08928439a60096d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sun, 9 Sep 2007 20:01:39 +0000 Subject: #174170 by Shiny: different method to insert an action row with default values, so it works with PostgreSQL too --- includes/actions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/actions.inc') 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)); -- cgit v1.2.3