d7, passing functions in db_insert()

Don <[email protected]> Mon, 22 Dec 2014 15:36:08 -0500
Newsgroups gmane.comp.php.drupal.support
Message-ID <[email protected]>
I know i've done this before, but I can't remember now.

Given
   $id = db_insert('stats_table')
    ->fields(array(
      'created' => 'now()',
   ))
   ->execute();

More interested in how to pass functions than in getting it to work.

-- 
thanks
-- 
-Don Pickerel-
Fane Software

-- 
[ Drupal support list | http://lists.drupal.org/ ]