title: Oracle to_date function with codeigniter
body: <p>I am using Codeigniter to insert data into an Oracle table which contains a date field.</p>
  
  <p>Sample code looks like this:</p>
  
  <pre><code>$upload_details = array("user_name" = $name,
      "age" = $age,
      "date" = 'to_date($date, 'dd/mm/yyyy')'
  );
  $this-&gt;Some_model-&gt;insert($upload_details);
  </code></pre>
  
  <p>Now the problem is, to insert date fields into Oracle, i need to use the <code>to_date</code> function which is executed in the database. With the above code, the <code>to_date</code> function comes out inside single quotes and Oracle throws out an error.</p>
  
  <p>I think the above will work if I use <code>$this-db-&gt;query</code> in the Codeigniter Model, but am not using that. I am using <code>$this-&gt;db-&gt;insert('table_name', $upload_details)</code>.</p>
  
  <p>So how can I tell codeigniter's <code>$this-&gt;db-&gt;insert</code> to send <code>to_do</code> function as it is and not in between single quotes.</p>