| @@ 148-163 (lines=16) @@ | ||
| 145 | * @param string $table_name |
|
| 146 | * @return mixed |
|
| 147 | */ |
|
| 148 | public function optimize_table($table_name) |
|
| 149 | { |
|
| 150 | if ($this->_optimize_table === FALSE) |
|
| 151 | { |
|
| 152 | return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE; |
|
| 153 | } |
|
| 154 | ||
| 155 | $query = $this->db->query(sprintf($this->_optimize_table, $this->db->escape_identifiers($table_name))); |
|
| 156 | if ($query !== FALSE) |
|
| 157 | { |
|
| 158 | $query = $query->result_array(); |
|
| 159 | return current($query); |
|
| 160 | } |
|
| 161 | ||
| 162 | return FALSE; |
|
| 163 | } |
|
| 164 | ||
| 165 | // -------------------------------------------------------------------- |
|
| 166 | ||
| @@ 209-224 (lines=16) @@ | ||
| 206 | * @param string $table_name |
|
| 207 | * @return mixed |
|
| 208 | */ |
|
| 209 | public function repair_table($table_name) |
|
| 210 | { |
|
| 211 | if ($this->_repair_table === FALSE) |
|
| 212 | { |
|
| 213 | return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE; |
|
| 214 | } |
|
| 215 | ||
| 216 | $query = $this->db->query(sprintf($this->_repair_table, $this->db->escape_identifiers($table_name))); |
|
| 217 | if (is_bool($query)) |
|
| 218 | { |
|
| 219 | return $query; |
|
| 220 | } |
|
| 221 | ||
| 222 | $query = $query->result_array(); |
|
| 223 | return current($query); |
|
| 224 | } |
|
| 225 | ||
| 226 | // -------------------------------------------------------------------- |
|
| 227 | ||