summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-25 16:48:49 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-25 16:48:49 +0200
commit5029305c030158aebac7df231f4bef38c30b3616 (patch)
tree96e25ca4e489f0849468119e6a87c817213f19c9 /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
parentdf8894f0bd819bd4f9692abf9b95b692d37f3188 (diff)
Add pdo_odbc subdriver
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
index 5afd749b4..a1865b55f 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
@@ -174,22 +174,9 @@ class CI_DB_pdo_sqlsrv_driver extends CI_DB_pdo_driver {
*/
protected function _list_columns($table = '')
{
- return 'SELECT "column_name" FROM "information_schema"."columns" WHERE "table_name" = '.$this->escape($table);
- }
-
- // --------------------------------------------------------------------
-
- /**
- * Field data query
- *
- * Generates a platform-specific query so that the column data can be retrieved
- *
- * @param string the table name
- * @return string
- */
- protected function _field_data($table)
- {
- return 'SELECT TOP 1 * FROM '.$this->protect_identifiers($table);
+ return 'SELECT '.$this->escape_identifiers('column_name')
+ .' FROM '.$this->escape_identifiers('information_schema.columns')
+ .' WHERE '.$this->escape_identifiers('table_name').' = '.$this->escape($table);
}
// --------------------------------------------------------------------