Changeset 2208
- Timestamp:
- 03/01/2008 02:50:19 PM (10 months ago)
- Location:
- trunk/system/libraries/drivers
- Files:
-
- 5 modified
-
Database.php (modified) (5 diffs)
-
Database/Mssql.php (modified) (3 diffs)
-
Database/Mysql.php (modified) (1 diff)
-
Database/Pdosqlite.php (modified) (1 diff)
-
Database/Pgsql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Database.php
r2193 r2208 64 64 * @param string character set to use 65 65 */ 66 abstract public function set_charset($charset); 66 public function set_charset($charset) 67 { 68 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__); 69 } 67 70 68 71 /** … … 191 194 * @return string 192 195 */ 193 abstract public function regex($field, $match, $type, $num_regexs); 196 public function regex($field, $match, $type, $num_regexs) 197 { 198 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__); 199 } 194 200 195 201 /** … … 202 208 * @return string 203 209 */ 204 abstract public function notregex($field, $match, $type, $num_regexs); 210 public function notregex($field, $match, $type, $num_regexs) 211 { 212 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__); 213 } 205 214 206 215 /** … … 230 239 * @return string 231 240 */ 232 abstract public function merge($table, $keys, $values); 241 public function merge($table, $keys, $values) 242 { 243 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__); 244 } 233 245 234 246 /** … … 247 259 * @return Database_Stmt 248 260 */ 249 abstract public function stmt_prepare($sql = ''); 261 public function stmt_prepare($sql = '') 262 { 263 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__); 264 } 250 265 251 266 /** -
trunk/system/libraries/drivers/Database/Mssql.php
r2206 r2208 101 101 } 102 102 103 public function set_charset($charset)104 {105 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);106 }107 108 103 public function escape_table($table) 109 104 { … … 164 159 } 165 160 return $column; 166 }167 168 /* As far as I know, T-SQL doesn't have the REGEXP or NOT REGEXP keywords169 *170 */171 public function regex($field, $match = '', $type = 'AND ', $num_regexs)172 {173 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);174 }175 176 public function notregex($field, $match = '', $type = 'AND ', $num_regexs)177 {178 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);179 }180 181 /* MERGE (or UPSERT) not supported in SQL SERVER 2000182 * somone with a more recent version should add this183 * feature in.184 */185 public function merge($table, $keys, $values)186 {187 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);188 161 } 189 162 … … 200 173 { 201 174 return 'TOP '.$limit; 202 }203 204 public function stmt_prepare($sql = '')205 {206 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);207 175 } 208 176 -
trunk/system/libraries/drivers/Database/Mysql.php
r2196 r2208 192 192 } 193 193 194 public function stmt_prepare($sql = '')195 {196 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);197 }198 199 194 public function compile_select($database) 200 195 { -
trunk/system/libraries/drivers/Database/Pdosqlite.php
r2196 r2208 132 132 } 133 133 134 public function regex($field, $match = '', $type = 'AND ', $num_regexs)135 {136 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);137 }138 139 public function notregex($field, $match = '', $type = 'AND ', $num_regexs)140 {141 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);142 }143 144 public function merge($table, $keys, $values)145 {146 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);147 }148 149 134 public function limit($limit, $offset = 0) 150 135 { 151 136 return 'LIMIT '.$offset.', '.$limit; 152 }153 154 public function stmt_prepare($sql = '')155 {156 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);157 137 } 158 138 -
trunk/system/libraries/drivers/Database/Pgsql.php
r2204 r2208 150 150 151 151 return $prefix.' '.$this->escape_column($field).' NOT REGEXP \''.$this->escape_str($match) . '\''; 152 }153 154 public function merge($table, $keys, $values)155 {156 throw new Kohana_Database_Exception('database.not_implemented', __FUNCTION__);157 152 } 158 153
