Changeset 1820
- Timestamp:
- 01/25/2008 04:59:46 PM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Database.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Database.php
r1819 r1820 845 845 846 846 if ($this->set == NULL) 847 {848 Log::add('debug', Kohana::lang('database.must_use_set'));849 847 throw new Kohana_Database_Exception('database.must_use_set'); 850 }851 848 852 849 if ($table == '') 853 850 { 854 851 if ( ! isset($this->from[0])) 855 {856 Log::add('debug', Kohana::lang('database.must_use_table'));857 852 throw new Kohana_Database_Exception('database.must_use_table'); 858 }859 853 860 854 $table = $this->from[0]; … … 886 880 887 881 if ($this->set == NULL) 888 {889 Log::add('debug', Kohana::lang('database.must_use_set'));890 882 throw new Kohana_Database_Exception('database.must_use_set'); 891 }892 883 893 884 if ($table == '') 894 885 { 895 886 if ( ! isset($this->from[0])) 896 {897 Log::add('debug', Kohana::lang('database.must_use_table'));898 887 throw new Kohana_Database_Exception('database.must_use_table'); 899 }900 888 901 889 $table = $this->from[0]; … … 933 921 934 922 if ($this->set == FALSE) 935 {936 Log::add('debug', Kohana::lang('database.must_use_set'));937 923 throw new Kohana_Database_Exception('database.must_use_set'); 938 }939 924 940 925 if ($table == '') 941 926 { 942 927 if ( ! isset($this->from[0])) 943 {944 Log::add('debug', Kohana::lang('database.must_use_table'));945 928 throw new Kohana_Database_Exception('database.must_use_table'); 946 }947 929 948 930 $table = $this->from[0]; … … 971 953 { 972 954 if ( ! isset($this->from[0])) 973 {974 Log::add('debug', Kohana::lang('database.must_use_table'));975 955 throw new Kohana_Database_Exception('database.must_use_table'); 976 }977 956 978 957 $table = $this->from[0]; … … 985 964 986 965 if (count($this->where) < 1) 987 {988 Log::add('debug', Kohana::lang('database.must_use_where'));989 966 throw new Kohana_Database_Exception('database.must_use_where'); 990 }991 967 992 968 $sql = $this->driver->delete($this->config['table_prefix'].$table, $this->where); … … 1024 1000 { 1025 1001 if ($table == FALSE) 1026 {1027 Log::add('debug', Kohana::lang('database.must_use_table'));1028 1002 throw new Kohana_Database_Exception('database.must_use_table'); 1029 }1030 1003 1031 1004 $this->from($table);
