title: Operand type clash: text is incompatible with datetime PDO Error
body: <p>So i have this php insert script using pdo.</p>
  
  <pre><code>$i = $db-&gt;prepare("INSERT INTO MEMB_INFO (memb___id, memb__pwd, memb_name, sno__numb,bloc_code, ctl1_code,mail_chek, mail_addr,modi_days) VALUES (?, [dbo].[fn_md5](?,?),?,?,?,?,?,?,?)");
  $i-&gt;execute(array($username,$password,$username,'test','111111111111','0','0','1',$email,'2005-01-03'));
  </code></pre>
  
  <p>But whenever i run it show me this error</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message
    'SQLSTATE[22018]: Invalid character value for cast specification: 206
    [Microsoft][ODBC SQL Server Driver][SQL Server]Operand type clash:
    text is incompatible with datetime (SQLExecute[206] at
    ext\pdo_odbc\odbc_stmt.c:254)'</p>
  </blockquote>
  
  <p>modi_days is datetime type with 8 length</p>