Changeset 1168 for trunk/system/libraries/Database.php
- Timestamp:
- 11/18/2007 03:13:52 AM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Database.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Database.php
r1166 r1168 728 728 $table = $this->from[0]; 729 729 } 730 $sql = $this->driver->update($this->config['table_prefix'].$table, $this->set, $this->where); 730 731 $table = $this->driver->escape_table($this->config['table_prefix'].$table); 732 733 $sql = $this->driver->update($table, $this->set, $this->where); 731 734 732 735 $this->reset_write(); … … 862 865 public function list_tables() 863 866 { 864 $this->link OR $this->driver->connect();867 $this->link or $this->connect(); 865 868 866 869 $this->reset_select(); … … 928 931 public function field_data($table ='') 929 932 { 933 $this->link or $this->connect(); 934 930 935 return $this->driver->field_data($table); 936 } 937 938 /* 939 * Method: list_fields 940 * Get the field data for a database table, along with the field's attributes. 941 * 942 * Parameters: 943 * table - table name 944 * 945 * Returns: 946 * Array containing the field data 947 */ 948 public function list_fields($table ='') 949 { 950 $this->link or $this->connect(); 951 952 return $this->driver->list_fields($table); 931 953 } 932 954
