title: codeigniter and odbc connections
body: <p>I don't understand why CodeIgniter is wrapping my table name in brackets. When I use CodeIgniter's ODBC driver for MS SQL it shows the errors below, however it works perfectly using the MySql driver. How can I stop this error from occurring?</p>
  
  <pre><code>A Database Error Occurred
  
  Error Number: 37000
  
  [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ')'.
  
  SELECT * FROM (ci_sessions) WHERE session_id = '3ad914bb5f5728e8ac69ad1db8fc9841' AND user_agent = 'Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2'
  
  Filename: D:\wamp\www\IVR_Panel\system\database\DB_driver.php
  
  Line Number: 330
  </code></pre>
  
  <p>I've also tried executing the same query in SQL Server 2005 which works without the brackets but still errors with them. I am using active record so I can switch between ODBC and MySQL drivers easily. Where can I modify CodeIgniter to remove the brackets?</p>