developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1130: mssql.dbtool.diff

File mssql.dbtool.diff, 1.5 KB (added by julien, 11 years ago)

Le patch de correction

  • lib/jelix/plugins/db/mssql/mssql.dbtools.php

    diff -r a8473144058e lib/jelix/plugins/db/mssql/mssql.dbtools.php
    a b  
    2121     */
    2222    function getTableList (){
    2323        $results = array ();
    24         $sql = "SELECT TABLE_NAME FROM " .$this->_connector->profile['database']. ".INFORMATION_SCHEMA.TABLES
     24        $sql = "SELECT TABLE_NAME FROM " .$this->_conn->profile['database']. ".INFORMATION_SCHEMA.TABLES
    2525                        WHERE TABLE_NAME NOT LIKE ('sys%') AND TABLE_NAME NOT LIKE ('dt%')";
    26         $rs = $this->_connector->query ($sql);
     26        $rs = $this->_conn->query ($sql);
    2727        while ($line = $rs->fetch ()){
    2828            $results[] = $line->TABLE_NAME;
    2929        }
     
    3939
    4040        $pkeys = array();
    4141        // get primary keys informations
    42         $rs = $this->_connector->query('EXEC sp_pkeys ' . $tableName);
     42        $rs = $this->_conn->query('EXEC sp_pkeys ' . $tableName);
    4343        while ($line = $rs->fetch()){
    4444            $pkeys[] = $line->COLUMN_NAME;
    4545        }
    4646        // get table informations
    4747        unset($line);
    48         $rs = $this->_connector->query ('EXEC sp_columns ' . $tableName);
     48        $rs = $this->_conn->query ('EXEC sp_columns ' . $tableName);
    4949        while ($line = $rs->fetch ()){
    5050            $field = new jDbFieldProperties();
    5151            $field->name = $line->COLUMN_NAME;