1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 4.3.2 or newer
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2008 - 2009, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * Database Driver Class
21 * This is the platform-independent base DB implementation class.
22 * This class will not be called directly. Rather, the adapter
23 * class for the specific database will extend and instantiate it.
25 * @package CodeIgniter
28 * @author ExpressionEngine Dev Team
29 * @link http://codeigniter.com/user_guide/database/
37 var $dbdriver = 'mysql';
39 var $char_set = 'utf8';
40 var $dbcollat = 'utf8_general_ci';
41 var $autoinit = TRUE; // Whether to automatically initialize the DB
44 var $pconnect = FALSE;
46 var $result_id = FALSE;
47 var $db_debug = FALSE;
50 var $bind_marker = '?';
51 var $save_queries = TRUE;
52 var $queries = array();
53 var $query_times = array();
54 var $data_cache = array();
55 var $trans_enabled = TRUE;
56 var $trans_strict = TRUE;
57 var $_trans_depth = 0;
58 var $_trans_status = TRUE; // Used with transactions to determine if a rollback should occur
59 var $cache_on = FALSE;
61 var $cache_autodel = FALSE;
62 var $CACHE; // The cache class object
65 var $_protect_identifiers = TRUE;
66 var $_reserved_identifiers = array('*'); // Identifiers that should NOT be escaped
68 // These are use with Oracle
76 * Constructor. Accepts one parameter containing the database
77 * connection settings.
81 function CI_DB_driver($params)
83 if (is_array($params))
85 foreach ($params as $key => $val)
91 log_message('debug', 'Database Driver Class Initialized');
94 // --------------------------------------------------------------------
97 * Initialize Database Settings
99 * @access private Called by the constructor
103 function initialize()
105 // If an existing connection resource is available
106 // there is no need to connect and select the database
107 if (is_resource($this->conn_id) OR is_object($this->conn_id))
112 // ----------------------------------------------------------------
114 // Connect to the database and set the connection ID
115 $this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect();
117 // No connection resource? Throw an error
118 if ( ! $this->conn_id)
120 log_message('error', 'Unable to connect to the database');
124 $this->display_error('db_unable_to_connect');
129 // ----------------------------------------------------------------
131 // Select the DB... assuming a database name is specified in the config file
132 if ($this->database != '')
134 if ( ! $this->db_select())
136 log_message('error', 'Unable to select database: '.$this->database);
140 $this->display_error('db_unable_to_select', $this->database);
146 // We've selected the DB. Now we set the character set
147 if ( ! $this->db_set_charset($this->char_set, $this->dbcollat))
159 // --------------------------------------------------------------------
162 * Set client character set
169 function db_set_charset($charset, $collation)
171 if ( ! $this->_db_set_charset($this->char_set, $this->dbcollat))
173 log_message('error', 'Unable to set database connection charset: '.$this->char_set);
177 $this->display_error('db_unable_to_set_charset', $this->char_set);
186 // --------------------------------------------------------------------
189 * The name of the platform in use (mysql, mssql, etc...)
196 return $this->dbdriver;
199 // --------------------------------------------------------------------
202 * Database Version Number. Returns a string containing the
203 * version of the database being used
210 if (FALSE === ($sql = $this->_version()))
214 return $this->display_error('db_unsupported_function');
219 if ($this->dbdriver == 'oci8')
224 $query = $this->query($sql);
225 return $query->row('ver');
228 // --------------------------------------------------------------------
233 * Accepts an SQL string as input and returns a result object upon
234 * successful execution of a "read" type query. Returns boolean TRUE
235 * upon successful execution of a "write" type query. Returns boolean
236 * FALSE upon failure, and if the $db_debug variable is set to TRUE
237 * will raise an error.
240 * @param string An SQL query string
241 * @param array An array of binding data
244 function query($sql, $binds = FALSE, $return_object = TRUE)
250 log_message('error', 'Invalid query: '.$sql);
251 return $this->display_error('db_invalid_query');
256 // Verify table prefix and replace if necessary
257 if ( ($this->dbprefix != '' AND $this->swap_pre != '') AND ($this->dbprefix != $this->swap_pre) )
259 $sql = preg_replace("/(\W)".$this->swap_pre."(\S+?)/", "\\1".$this->dbprefix."\\2", $sql);
262 // Is query caching enabled? If the query is a "read type"
263 // we will load the caching class and return the previously
264 // cached query if it exists
265 if ($this->cache_on == TRUE AND stristr($sql, 'SELECT'))
267 if ($this->_cache_init())
269 $this->load_rdriver();
270 if (FALSE !== ($cache = $this->CACHE->read($sql)))
277 // Compile binds if needed
278 if ($binds !== FALSE)
280 $sql = $this->compile_binds($sql, $binds);
283 // Save the query for debugging
284 if ($this->save_queries == TRUE)
286 $this->queries[] = $sql;
289 // Start the Query Timer
290 $time_start = list($sm, $ss) = explode(' ', microtime());
293 if (FALSE === ($this->result_id = $this->simple_query($sql)))
295 if ($this->save_queries == TRUE)
297 $this->query_times[] = 0;
300 // This will trigger a rollback if transactions are being used
301 $this->_trans_status = FALSE;
305 // grab the error number and message now, as we might run some
306 // additional queries before displaying the error
307 $error_no = $this->_error_number();
308 $error_msg = $this->_error_message();
310 // We call this function in order to roll-back queries
311 // if transactions are enabled. If we don't call this here
312 // the error message will trigger an exit, causing the
313 // transactions to remain in limbo.
314 $this->trans_complete();
316 // Log and display errors
317 log_message('error', 'Query error: '.$error_msg);
318 return $this->display_error(
320 'Error Number: '.$error_no,
330 // Stop and aggregate the query time results
331 $time_end = list($em, $es) = explode(' ', microtime());
332 $this->benchmark += ($em + $es) - ($sm + $ss);
334 if ($this->save_queries == TRUE)
336 $this->query_times[] = ($em + $es) - ($sm + $ss);
339 // Increment the query counter
340 $this->query_count++;
342 // Was the query a "write" type?
343 // If so we'll simply return true
344 if ($this->is_write_type($sql) === TRUE)
346 // If caching is enabled we'll auto-cleanup any
347 // existing files related to this particular URI
348 if ($this->cache_on == TRUE AND $this->cache_autodel == TRUE AND $this->_cache_init())
350 $this->CACHE->delete();
356 // Return TRUE if we don't need to create a result object
357 // Currently only the Oracle driver uses this when stored
358 // procedures are used
359 if ($return_object !== TRUE)
364 // Load and instantiate the result driver
366 $driver = $this->load_rdriver();
367 $RES = new $driver();
368 $RES->conn_id = $this->conn_id;
369 $RES->result_id = $this->result_id;
371 if ($this->dbdriver == 'oci8')
373 $RES->stmt_id = $this->stmt_id;
374 $RES->curs_id = NULL;
375 $RES->limit_used = $this->limit_used;
376 $this->stmt_id = FALSE;
379 // oci8 vars must be set before calling this
380 $RES->num_rows = $RES->num_rows();
382 // Is query caching enabled? If so, we'll serialize the
383 // result object and save it to a cache file.
384 if ($this->cache_on == TRUE AND $this->_cache_init())
386 // We'll create a new instance of the result object
387 // only without the platform specific driver since
388 // we can't use it with cached data (the query result
389 // resource ID won't be any good once we've cached the
390 // result object, so we'll have to compile the data
392 $CR = new CI_DB_result();
393 $CR->num_rows = $RES->num_rows();
394 $CR->result_object = $RES->result_object();
395 $CR->result_array = $RES->result_array();
397 // Reset these since cached objects can not utilize resource IDs.
399 $CR->result_id = NULL;
401 $this->CACHE->write($sql, $CR);
407 // --------------------------------------------------------------------
410 * Load the result drivers
413 * @return string the name of the result class
415 function load_rdriver()
417 $driver = 'CI_DB_'.$this->dbdriver.'_result';
419 if ( ! class_exists($driver))
421 include_once(BASEPATH.'database/DB_result'.EXT);
422 include_once(BASEPATH.'database/drivers/'.$this->dbdriver.'/'.$this->dbdriver.'_result'.EXT);
428 // --------------------------------------------------------------------
432 * This is a simplified version of the query() function. Internally
433 * we only use it when running transaction commands since they do
434 * not require all the features of the main query() function.
437 * @param string the sql query
440 function simple_query($sql)
442 if ( ! $this->conn_id)
447 return $this->_execute($sql);
450 // --------------------------------------------------------------------
453 * Disable Transactions
454 * This permits transactions to be disabled at run-time.
461 $this->trans_enabled = FALSE;
464 // --------------------------------------------------------------------
467 * Enable/disable Transaction Strict Mode
468 * When strict mode is enabled, if you are running multiple groups of
469 * transactions, if one group fails all groups will be rolled back.
470 * If strict mode is disabled, each group is treated autonomously, meaning
471 * a failure of one group will not affect any others
476 function trans_strict($mode = TRUE)
478 $this->trans_strict = is_bool($mode) ? $mode : TRUE;
481 // --------------------------------------------------------------------
489 function trans_start($test_mode = FALSE)
491 if ( ! $this->trans_enabled)
496 // When transactions are nested we only begin/commit/rollback the outermost ones
497 if ($this->_trans_depth > 0)
499 $this->_trans_depth += 1;
503 $this->trans_begin($test_mode);
506 // --------------------------------------------------------------------
509 * Complete Transaction
514 function trans_complete()
516 if ( ! $this->trans_enabled)
521 // When transactions are nested we only begin/commit/rollback the outermost ones
522 if ($this->_trans_depth > 1)
524 $this->_trans_depth -= 1;
528 // The query() function will set this flag to FALSE in the event that a query failed
529 if ($this->_trans_status === FALSE)
531 $this->trans_rollback();
533 // If we are NOT running in strict mode, we will reset
534 // the _trans_status flag so that subsequent groups of transactions
535 // will be permitted.
536 if ($this->trans_strict === FALSE)
538 $this->_trans_status = TRUE;
541 log_message('debug', 'DB Transaction Failure');
545 $this->trans_commit();
549 // --------------------------------------------------------------------
552 * Lets you retrieve the transaction flag to determine if it has failed
557 function trans_status()
559 return $this->_trans_status;
562 // --------------------------------------------------------------------
568 * @param string the sql statement
569 * @param array an array of bind data
572 function compile_binds($sql, $binds)
574 if (strpos($sql, $this->bind_marker) === FALSE)
579 if ( ! is_array($binds))
581 $binds = array($binds);
584 // Get the sql segments around the bind markers
585 $segments = explode($this->bind_marker, $sql);
587 // The count of bind should be 1 less then the count of segments
588 // If there are more bind arguments trim it down
589 if (count($binds) >= count($segments)) {
590 $binds = array_slice($binds, 0, count($segments)-1);
593 // Construct the binded query
594 $result = $segments[0];
596 foreach ($binds as $bind)
598 $result .= $this->escape($bind);
599 $result .= $segments[++$i];
605 // --------------------------------------------------------------------
608 * Determines if a query is a "write" type.
611 * @param string An SQL query string
614 function is_write_type($sql)
616 if ( ! preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD DATA|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\s+/i', $sql))
623 // --------------------------------------------------------------------
626 * Calculate the aggregate query elapsed time
629 * @param integer The number of decimal places
632 function elapsed_time($decimals = 6)
634 return number_format($this->benchmark, $decimals);
637 // --------------------------------------------------------------------
640 * Returns the total number of queries
645 function total_queries()
647 return $this->query_count;
650 // --------------------------------------------------------------------
653 * Returns the last query that was executed
658 function last_query()
660 return end($this->queries);
663 // --------------------------------------------------------------------
666 * "Smart" Escape String
668 * Escapes data based on type
669 * Sets boolean and null types
675 function escape($str)
679 $str = "'".$this->escape_str($str)."'";
681 elseif (is_bool($str))
683 $str = ($str === FALSE) ? 0 : 1;
685 elseif (is_null($str))
693 // --------------------------------------------------------------------
698 * Calls the individual driver for platform
699 * specific escaping for LIKE conditions
705 function escape_like_str($str)
707 return $this->escape_str($str, TRUE);
710 // --------------------------------------------------------------------
715 * Retrieves the primary key. It assumes that the row in the first
716 * position is the primary key
719 * @param string the table name
722 function primary($table = '')
724 $fields = $this->list_fields($table);
726 if ( ! is_array($fields))
731 return current($fields);
734 // --------------------------------------------------------------------
737 * Returns an array of table names
742 function list_tables($constrain_by_prefix = FALSE)
744 // Is there a cached result?
745 if (isset($this->data_cache['table_names']))
747 return $this->data_cache['table_names'];
750 if (FALSE === ($sql = $this->_list_tables($constrain_by_prefix)))
754 return $this->display_error('db_unsupported_function');
760 $query = $this->query($sql);
762 if ($query->num_rows() > 0)
764 foreach($query->result_array() as $row)
766 if (isset($row['TABLE_NAME']))
768 $retval[] = $row['TABLE_NAME'];
772 $retval[] = array_shift($row);
777 $this->data_cache['table_names'] = $retval;
778 return $this->data_cache['table_names'];
781 // --------------------------------------------------------------------
784 * Determine if a particular table exists
788 function table_exists($table_name)
790 return ( ! in_array($this->_protect_identifiers($table_name, TRUE, FALSE, FALSE), $this->list_tables())) ? FALSE : TRUE;
793 // --------------------------------------------------------------------
796 * Fetch MySQL Field Names
799 * @param string the table name
802 function list_fields($table = '')
804 // Is there a cached result?
805 if (isset($this->data_cache['field_names'][$table]))
807 return $this->data_cache['field_names'][$table];
814 return $this->display_error('db_field_param_missing');
819 if (FALSE === ($sql = $this->_list_columns($this->_protect_identifiers($table, TRUE, NULL, FALSE))))
823 return $this->display_error('db_unsupported_function');
828 $query = $this->query($sql);
831 foreach($query->result_array() as $row)
833 if (isset($row['COLUMN_NAME']))
835 $retval[] = $row['COLUMN_NAME'];
839 $retval[] = current($row);
843 $this->data_cache['field_names'][$table] = $retval;
844 return $this->data_cache['field_names'][$table];
847 // --------------------------------------------------------------------
850 * Determine if a particular field exists
856 function field_exists($field_name, $table_name)
858 return ( ! in_array($field_name, $this->list_fields($table_name))) ? FALSE : TRUE;
861 // --------------------------------------------------------------------
864 * Returns an object with field data
867 * @param string the table name
870 function field_data($table = '')
876 return $this->display_error('db_field_param_missing');
881 $query = $this->query($this->_field_data($this->_protect_identifiers($table, TRUE, NULL, FALSE)));
883 return $query->field_data();
886 // --------------------------------------------------------------------
889 * Generate an insert string
892 * @param string the table upon which the query will be performed
893 * @param array an associative array data of key/values
896 function insert_string($table, $data)
901 foreach($data as $key => $val)
903 $fields[] = $this->_escape_identifiers($key);
904 $values[] = $this->escape($val);
907 return $this->_insert($this->_protect_identifiers($table, TRUE, NULL, FALSE), $fields, $values);
910 // --------------------------------------------------------------------
913 * Generate an update string
916 * @param string the table upon which the query will be performed
917 * @param array an associative array data of key/values
918 * @param mixed the "where" statement
921 function update_string($table, $data, $where)
929 foreach($data as $key => $val)
931 $fields[$this->_protect_identifiers($key)] = $this->escape($val);
934 if ( ! is_array($where))
936 $dest = array($where);
941 foreach ($where as $key => $val)
943 $prefix = (count($dest) == 0) ? '' : ' AND ';
947 if ( ! $this->_has_operator($key))
952 $val = ' '.$this->escape($val);
955 $dest[] = $prefix.$key.$val;
959 return $this->_update($this->_protect_identifiers($table, TRUE, NULL, FALSE), $fields, $dest);
962 // --------------------------------------------------------------------
965 * Tests whether the string has an SQL operator
971 function _has_operator($str)
974 if ( ! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))
982 // --------------------------------------------------------------------
985 * Enables a native PHP function to be run, using a platform agnostic wrapper.
988 * @param string the function name
989 * @param mixed any parameters needed by the function
992 function call_function($function)
994 $driver = ($this->dbdriver == 'postgre') ? 'pg_' : $this->dbdriver.'_';
996 if (FALSE === strpos($driver, $function))
998 $function = $driver.$function;
1001 if ( ! function_exists($function))
1003 if ($this->db_debug)
1005 return $this->display_error('db_unsupported_function');
1011 $args = (func_num_args() > 1) ? array_splice(func_get_args(), 1) : null;
1013 return call_user_func_array($function, $args);
1017 // --------------------------------------------------------------------
1020 * Set Cache Directory Path
1023 * @param string the path to the cache directory
1026 function cache_set_path($path = '')
1028 $this->cachedir = $path;
1031 // --------------------------------------------------------------------
1034 * Enable Query Caching
1041 $this->cache_on = TRUE;
1045 // --------------------------------------------------------------------
1048 * Disable Query Caching
1053 function cache_off()
1055 $this->cache_on = FALSE;
1060 // --------------------------------------------------------------------
1063 * Delete the cache files associated with a particular URI
1068 function cache_delete($segment_one = '', $segment_two = '')
1070 if ( ! $this->_cache_init())
1074 return $this->CACHE->delete($segment_one, $segment_two);
1077 // --------------------------------------------------------------------
1080 * Delete All cache files
1085 function cache_delete_all()
1087 if ( ! $this->_cache_init())
1092 return $this->CACHE->delete_all();
1095 // --------------------------------------------------------------------
1098 * Initialize the Cache Class
1103 function _cache_init()
1105 if (is_object($this->CACHE) AND class_exists('CI_DB_Cache'))
1110 if ( ! class_exists('CI_DB_Cache'))
1112 if ( ! @include(BASEPATH.'database/DB_cache'.EXT))
1114 return $this->cache_off();
1118 $this->CACHE = new CI_DB_Cache($this); // pass db object to support multiple db connections and returned db objects
1122 // --------------------------------------------------------------------
1125 * Close DB Connection
1132 if (is_resource($this->conn_id) OR is_object($this->conn_id))
1134 $this->_close($this->conn_id);
1136 $this->conn_id = FALSE;
1139 // --------------------------------------------------------------------
1142 * Display an error message
1145 * @param string the error message
1146 * @param string any "swap" values
1147 * @param boolean whether to localize the message
1148 * @return string sends the application/error_db.php template
1150 function display_error($error = '', $swap = '', $native = FALSE)
1152 $LANG =& load_class('Language');
1155 $heading = $LANG->line('db_error_heading');
1157 if ($native == TRUE)
1163 $message = ( ! is_array($error)) ? array(str_replace('%s', $swap, $LANG->line($error))) : $error;
1166 $error =& load_class('Exceptions');
1167 echo $error->show_error($heading, $message, 'error_db');
1171 // --------------------------------------------------------------------
1174 * Protect Identifiers
1176 * This function adds backticks if appropriate based on db type
1179 * @param mixed the item to escape
1180 * @return mixed the item with backticks
1182 function protect_identifiers($item, $prefix_single = FALSE)
1184 return $this->_protect_identifiers($item, $prefix_single);
1187 // --------------------------------------------------------------------
1190 * Protect Identifiers
1192 * This function is used extensively by the Active Record class, and by
1193 * a couple functions in this class.
1194 * It takes a column or table name (optionally with an alias) and inserts
1195 * the table prefix onto it. Some logic is necessary in order to deal with
1196 * column names that include the path. Consider a query like this:
1198 * SELECT * FROM hostname.database.table.column AS c FROM hostname.database.table
1200 * Or a query with aliasing:
1202 * SELECT m.member_id, m.member_name FROM members AS m
1204 * Since the column name can include up to four segments (host, DB, table, column)
1205 * or also have an alias prefix, we need to do a bit of work to figure this out and
1206 * insert the table prefix (if it exists) in the proper position, and escape only
1207 * the correct identifiers.
1216 function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifiers = NULL, $field_exists = TRUE)
1218 if ( ! is_bool($protect_identifiers))
1220 $protect_identifiers = $this->_protect_identifiers;
1223 if (is_array($item))
1225 $escaped_array = array();
1227 foreach($item as $k => $v)
1229 $escaped_array[$this->_protect_identifiers($k)] = $this->_protect_identifiers($v);
1232 return $escaped_array;
1235 // Convert tabs or multiple spaces into single spaces
1236 $item = preg_replace('/[\t ]+/', ' ', $item);
1238 // If the item has an alias declaration we remove it and set it aside.
1239 // Basically we remove everything to the right of the first space
1241 if (strpos($item, ' ') !== FALSE)
1243 $alias = strstr($item, " ");
1244 $item = substr($item, 0, - strlen($alias));
1247 // This is basically a bug fix for queries that use MAX, MIN, etc.
1248 // If a parenthesis is found we know that we do not need to
1249 // escape the data or add a prefix. There's probably a more graceful
1250 // way to deal with this, but I'm not thinking of it -- Rick
1251 if (strpos($item, '(') !== FALSE)
1253 return $item.$alias;
1256 // Break the string apart if it contains periods, then insert the table prefix
1257 // in the correct location, assuming the period doesn't indicate that we're dealing
1258 // with an alias. While we're at it, we will escape the components
1259 if (strpos($item, '.') !== FALSE)
1261 $parts = explode('.', $item);
1263 // Does the first segment of the exploded item match
1264 // one of the aliases previously identified? If so,
1265 // we have nothing more to do other than escape the item
1266 if (in_array($parts[0], $this->ar_aliased_tables))
1268 if ($protect_identifiers === TRUE)
1270 foreach ($parts as $key => $val)
1272 if ( ! in_array($val, $this->_reserved_identifiers))
1274 $parts[$key] = $this->_escape_identifiers($val);
1278 $item = implode('.', $parts);
1280 return $item.$alias;
1283 // Is there a table prefix defined in the config file? If not, no need to do anything
1284 if ($this->dbprefix != '')
1286 // We now add the table prefix based on some logic.
1287 // Do we have 4 segments (hostname.database.table.column)?
1288 // If so, we add the table prefix to the column name in the 3rd segment.
1289 if (isset($parts[3]))
1293 // Do we have 3 segments (database.table.column)?
1294 // If so, we add the table prefix to the column name in 2nd position
1295 elseif (isset($parts[2]))
1299 // Do we have 2 segments (table.column)?
1300 // If so, we add the table prefix to the column name in 1st segment
1306 // This flag is set when the supplied $item does not contain a field name.
1307 // This can happen when this function is being called from a JOIN.
1308 if ($field_exists == FALSE)
1313 // Verify table prefix and replace if necessary
1314 if ($this->swap_pre != '' && strncmp($parts[$i], $this->swap_pre, strlen($this->swap_pre)) === 0)
1316 $parts[$i] = preg_replace("/^".$this->swap_pre."(\S+?)/", $this->dbprefix."\\1", $parts[$i]);
1319 // We only add the table prefix if it does not already exist
1320 if (substr($parts[$i], 0, strlen($this->dbprefix)) != $this->dbprefix)
1322 $parts[$i] = $this->dbprefix.$parts[$i];
1325 // Put the parts back together
1326 $item = implode('.', $parts);
1329 if ($protect_identifiers === TRUE)
1331 $item = $this->_escape_identifiers($item);
1334 return $item.$alias;
1337 // Is there a table prefix? If not, no need to insert it
1338 if ($this->dbprefix != '')
1340 // Verify table prefix and replace if necessary
1341 if ($this->swap_pre != '' && strncmp($item, $this->swap_pre, strlen($this->swap_pre)) === 0)
1343 $item = preg_replace("/^".$this->swap_pre."(\S+?)/", $this->dbprefix."\\1", $item);
1346 // Do we prefix an item with no segments?
1347 if ($prefix_single == TRUE AND substr($item, 0, strlen($this->dbprefix)) != $this->dbprefix)
1349 $item = $this->dbprefix.$item;
1353 if ($protect_identifiers === TRUE AND ! in_array($item, $this->_reserved_identifiers))
1355 $item = $this->_escape_identifiers($item);
1358 return $item.$alias;
1365 /* End of file DB_driver.php */
1366 /* Location: ./system/database/DB_driver.php */