<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks. Looks like db_query() is the
only way to go.<br>
<br>
-Don-<br>
<br>
On 12/22/2014 4:12 PM, Pierre Rineau wrote:<br>
</div>
<blockquote cite="mid:1419282736.11260.1.camel@makina-corpus.com"
type="cite">
<pre wrap="">Le lundi 22 décembre 2014 à 15:36 -0500, Don a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
I don't know the answer for db_insert(), but for db_select() you would
do something like:
db_select('some_table')
->addExpression("RAW SQL STATEMENT");
When you don't really know how, db_query() is your friend.
--
Pierre
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<title></title>
-Don Pickerel-<br>
Fane Software<br>
<img alt="" src="cid:part1.09020500.00030007@fane.com"
height="70" width="66"><br>
</div>
</div>
</body>
</html>