Index: modules/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node.module,v
retrieving revision 1.523
diff -u -Ff -r1.523 node.module
--- modules/node.module	25 Aug 2005 21:22:00 -0000	1.523
+++ modules/node.module	27 Aug 2005 19:31:30 -0000
@@ -416,14 +416,11 @@     if (!$node->changed) {
     // Prepare the query:
     foreach ($node as $key => $value) {
       if (in_array((string) $key, $fields)) {
-        $k[] = db_escape_string($key);
-        $v[] = $value;
-        $s[] = "'%s'";
+        $v[$key] = $value;
       }
     }
-
     // Insert the node into the database:
-    db_query("INSERT INTO {node} (". implode(", ", $k) .") VALUES(". implode(", ", $s) .")", $v);
+    db_query("INSERT INTO {node} %a", $v);
 
     // Call the node specific callback (if any):
     node_invoke($node, 'insert');
