Changeset 1820

Show
Ignore:
Timestamp:
01/25/2008 04:59:46 PM (12 months ago)
Author:
zombor
Message:

Guess we don't need all this logging.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Database.php

    r1819 r1820  
    845845 
    846846                if ($this->set == NULL) 
    847                 { 
    848                         Log::add('debug', Kohana::lang('database.must_use_set')); 
    849847                        throw new Kohana_Database_Exception('database.must_use_set'); 
    850                 } 
    851848 
    852849                if ($table == '') 
    853850                { 
    854851                        if ( ! isset($this->from[0])) 
    855                         { 
    856                                 Log::add('debug', Kohana::lang('database.must_use_table')); 
    857852                                throw new Kohana_Database_Exception('database.must_use_table'); 
    858                         } 
    859853 
    860854                        $table = $this->from[0]; 
     
    886880 
    887881                if ($this->set == NULL) 
    888                 { 
    889                         Log::add('debug', Kohana::lang('database.must_use_set')); 
    890882                        throw new Kohana_Database_Exception('database.must_use_set'); 
    891                 } 
    892883 
    893884                if ($table == '') 
    894885                { 
    895886                        if ( ! isset($this->from[0])) 
    896                         { 
    897                                 Log::add('debug', Kohana::lang('database.must_use_table')); 
    898887                                throw new Kohana_Database_Exception('database.must_use_table'); 
    899                         } 
    900888 
    901889                        $table = $this->from[0]; 
     
    933921 
    934922                if ($this->set == FALSE) 
    935                 { 
    936                         Log::add('debug', Kohana::lang('database.must_use_set')); 
    937923                        throw new Kohana_Database_Exception('database.must_use_set'); 
    938                 } 
    939924 
    940925                if ($table == '') 
    941926                { 
    942927                        if ( ! isset($this->from[0])) 
    943                         { 
    944                                 Log::add('debug', Kohana::lang('database.must_use_table')); 
    945928                                throw new Kohana_Database_Exception('database.must_use_table'); 
    946                         } 
    947929 
    948930                        $table = $this->from[0]; 
     
    971953                { 
    972954                        if ( ! isset($this->from[0])) 
    973                         { 
    974                                 Log::add('debug', Kohana::lang('database.must_use_table')); 
    975955                                throw new Kohana_Database_Exception('database.must_use_table'); 
    976                         } 
    977956 
    978957                        $table = $this->from[0]; 
     
    985964 
    986965                if (count($this->where) < 1) 
    987                 { 
    988                         Log::add('debug', Kohana::lang('database.must_use_where')); 
    989966                        throw new Kohana_Database_Exception('database.must_use_where'); 
    990                 } 
    991967 
    992968                $sql = $this->driver->delete($this->config['table_prefix'].$table, $this->where); 
     
    10241000                { 
    10251001                        if ($table == FALSE) 
    1026                         { 
    1027                                 Log::add('debug', Kohana::lang('database.must_use_table')); 
    10281002                                throw new Kohana_Database_Exception('database.must_use_table'); 
    1029                         } 
    10301003 
    10311004                        $this->from($table);