blob: 98fffa021cfd2f3c917ac64feaf929339e1eb68f [file] [log] [blame]
Timothy Warren80ab8162011-08-22 18:26:12 -04001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
Timothy Warrend1a5ba22011-10-21 04:45:28 -04007 * NOTICE OF LICENSE
8 *
9 * Licensed under the Open Software License version 3.0
10 *
11 * This source file is subject to the Open Software License (OSL 3.0) that is
12 * bundled with this package in the files license.txt / license.rst. It is
13 * also available through the world wide web at this URL:
14 * http://opensource.org/licenses/OSL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
Timothy Warren80ab8162011-08-22 18:26:12 -040019 * @package CodeIgniter
Timothy Warrend1a5ba22011-10-21 04:45:28 -040020 * @author EllisLab Dev Team
21 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/)
22 * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
Timothy Warren80ab8162011-08-22 18:26:12 -040023 * @link http://codeigniter.com
Timothy Warren018af7a2011-09-07 12:07:35 -040024 * @since Version 2.1.0
Timothy Warren80ab8162011-08-22 18:26:12 -040025 * @filesource
26 */
27
28// ------------------------------------------------------------------------
29
30/**
Timothy Warren02615962011-08-24 08:21:36 -040031 * PDO Database Adapter Class
Timothy Warren80ab8162011-08-22 18:26:12 -040032 *
33 * Note: _DB is an extender class that the app controller
34 * creates dynamically based on whether the active record
35 * class is being used or not.
36 *
37 * @package CodeIgniter
38 * @subpackage Drivers
39 * @category Database
Timothy Warrend1a5ba22011-10-21 04:45:28 -040040 * @author EllisLab Dev Team
Timothy Warren80ab8162011-08-22 18:26:12 -040041 * @link http://codeigniter.com/user_guide/database/
42 */
43class CI_DB_pdo_driver extends CI_DB {
44
45 var $dbdriver = 'pdo';
46
47 // the character used to excape - not necessary for PDO
48 var $_escape_char = '';
Timothy Warrenc7ba6642011-09-14 12:25:14 -040049 var $_like_escape_str;
50 var $_like_escape_chr;
51
Timothy Warren80ab8162011-08-22 18:26:12 -040052
53 /**
54 * The syntax to count rows is slightly different across different
55 * database engines, so this string appears in each driver and is
56 * used for the count_all() and count_all_results() functions.
57 */
58 var $_count_string = "SELECT COUNT(*) AS ";
59 var $_random_keyword;
60
61
Timothy Warren51b0e642011-09-13 13:30:27 -040062 function __construct($params)
Timothy Warren80ab8162011-08-22 18:26:12 -040063 {
Timothy Warrenb5a43b02011-10-04 17:26:04 -040064 parent::__construct($params);
Timothy Warrenab347582011-08-23 12:29:29 -040065
Timothy Warrenc7ba6642011-09-14 12:25:14 -040066 // clause and character used for LIKE escape sequences
Timothy Warrend6691532011-10-07 10:03:01 -040067 if (strpos($this->hostname, 'mysql') !== FALSE)
Timothy Warrenc7ba6642011-09-14 12:25:14 -040068 {
69 $this->_like_escape_str = '';
70 $this->_like_escape_chr = '';
Timothy Warrend1a5ba22011-10-21 04:45:28 -040071
72 //Set the charset with the connection string
73 $this->hostname .= ";charset=" . $this->char_set;
Timothy Warrenc7ba6642011-09-14 12:25:14 -040074 }
Timothy Warrend6691532011-10-07 10:03:01 -040075 else if (strpos($this->hostname, 'odbc') !== FALSE)
Timothy Warrenc7ba6642011-09-14 12:25:14 -040076 {
77 $this->_like_escape_str = " {escape '%s'} ";
78 $this->_like_escape_chr = '!';
79 }
80 else
81 {
82 $this->_like_escape_str = " ESCAPE '%s' ";
83 $this->_like_escape_chr = '!';
84 }
85
Timothy Warrenab347582011-08-23 12:29:29 -040086 $this->hostname = $this->hostname . ";dbname=".$this->database;
Timothy Warrend1a5ba22011-10-21 04:45:28 -040087
88
89
Timothy Warrenab347582011-08-23 12:29:29 -040090 $this->trans_enabled = FALSE;
Timothy Warren80ab8162011-08-22 18:26:12 -040091
92 $this->_random_keyword = ' RND('.time().')'; // database specific random keyword
93 }
94
95 /**
96 * Non-persistent database connection
97 *
98 * @access private called by the base class
99 * @return resource
100 */
101 function db_connect()
102 {
Timothy Warrenab347582011-08-23 12:29:29 -0400103 return new PDO($this->hostname,$this->username,$this->password, array(
104 PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT
Timothy Warren80ab8162011-08-22 18:26:12 -0400105 ));
106 }
107
108 // --------------------------------------------------------------------
109
110 /**
111 * Persistent database connection
112 *
113 * @access private called by the base class
114 * @return resource
115 */
116 function db_pconnect()
117 {
Timothy Warrenab347582011-08-23 12:29:29 -0400118 return new PDO($this->hostname,$this->username,$this->password, array(
119 PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT,
120 PDO::ATTR_PERSISTENT => true
Timothy Warren80ab8162011-08-22 18:26:12 -0400121 ));
122 }
123
124 // --------------------------------------------------------------------
125
126 /**
127 * Reconnect
128 *
129 * Keep / reestablish the db connection if no queries have been
130 * sent for a length of time exceeding the server's idle timeout
131 *
132 * @access public
133 * @return void
134 */
135 function reconnect()
136 {
Timothy Warren02615962011-08-24 08:21:36 -0400137 if ($this->db->db_debug)
138 {
139 return $this->db->display_error('db_unsuported_feature');
140 }
141 return FALSE;
Timothy Warren80ab8162011-08-22 18:26:12 -0400142 }
143
144 // --------------------------------------------------------------------
145
146 /**
147 * Select the database
148 *
149 * @access private called by the base class
150 * @return resource
151 */
152 function db_select()
153 {
154 // Not needed for PDO
155 return TRUE;
156 }
157
158 // --------------------------------------------------------------------
159
160 /**
161 * Set client character set
162 *
163 * @access public
164 * @param string
165 * @param string
166 * @return resource
167 */
168 function db_set_charset($charset, $collation)
169 {
170 // @todo - add support if needed
171 return TRUE;
172 }
173
174 // --------------------------------------------------------------------
175
176 /**
177 * Version number query string
178 *
179 * @access public
180 * @return string
181 */
182 function _version()
183 {
Timothy Warren36fb8de2011-08-24 08:29:05 -0400184 return $this->conn_id->getAttribute(PDO::ATTR_CLIENT_VERSION);
Timothy Warren80ab8162011-08-22 18:26:12 -0400185 }
186
187 // --------------------------------------------------------------------
188
189 /**
190 * Execute the query
191 *
192 * @access private called by the base class
193 * @param string an SQL query
Timothy Warren51a48882011-09-14 13:47:06 -0400194 * @return object
Timothy Warren80ab8162011-08-22 18:26:12 -0400195 */
196 function _execute($sql)
197 {
198 $sql = $this->_prep_query($sql);
Timothy Warren51a48882011-09-14 13:47:06 -0400199 $result_id = $this->conn_id->query($sql);
200
Timothy Warrend6691532011-10-07 10:03:01 -0400201 if (is_object($result_id))
Timothy Warrenb5a43b02011-10-04 17:26:04 -0400202 {
203 $this->affect_rows = $result_id->rowCount();
204 }
205 else
206 {
207 $this->affect_rows = 0;
208 }
Timothy Warren51a48882011-09-14 13:47:06 -0400209
210 return $result_id;
Timothy Warren80ab8162011-08-22 18:26:12 -0400211 }
212
213 // --------------------------------------------------------------------
214
215 /**
216 * Prep the query
217 *
218 * If needed, each database adapter can prep the query string
219 *
220 * @access private called by execute()
221 * @param string an SQL query
222 * @return string
223 */
224 function _prep_query($sql)
225 {
226 return $sql;
227 }
228
229 // --------------------------------------------------------------------
230
231 /**
232 * Begin Transaction
233 *
234 * @access public
235 * @return bool
236 */
237 function trans_begin($test_mode = FALSE)
238 {
239 if ( ! $this->trans_enabled)
240 {
241 return TRUE;
242 }
243
244 // When transactions are nested we only begin/commit/rollback the outermost ones
245 if ($this->_trans_depth > 0)
246 {
247 return TRUE;
248 }
249
250 // Reset the transaction failure flag.
251 // If the $test_mode flag is set to TRUE transactions will be rolled back
252 // even if the queries produce a successful result.
253 $this->_trans_failure = ($test_mode === TRUE) ? TRUE : FALSE;
254
Timothy Warrenab347582011-08-23 12:29:29 -0400255 return $this->conn_id->beginTransaction();
Timothy Warren80ab8162011-08-22 18:26:12 -0400256 }
257
258 // --------------------------------------------------------------------
259
260 /**
261 * Commit Transaction
262 *
263 * @access public
264 * @return bool
265 */
266 function trans_commit()
267 {
268 if ( ! $this->trans_enabled)
269 {
270 return TRUE;
271 }
272
273 // When transactions are nested we only begin/commit/rollback the outermost ones
274 if ($this->_trans_depth > 0)
275 {
276 return TRUE;
277 }
278
Timothy Warrenab347582011-08-23 12:29:29 -0400279 $ret = $this->conn->commit();
Timothy Warren80ab8162011-08-22 18:26:12 -0400280 return $ret;
281 }
282
283 // --------------------------------------------------------------------
284
285 /**
286 * Rollback Transaction
287 *
288 * @access public
289 * @return bool
290 */
291 function trans_rollback()
292 {
293 if ( ! $this->trans_enabled)
294 {
295 return TRUE;
296 }
297
298 // When transactions are nested we only begin/commit/rollback the outermost ones
299 if ($this->_trans_depth > 0)
300 {
301 return TRUE;
302 }
303
Timothy Warrenab347582011-08-23 12:29:29 -0400304 $ret = $this->conn_id->rollBack();
Timothy Warren80ab8162011-08-22 18:26:12 -0400305 return $ret;
306 }
307
308 // --------------------------------------------------------------------
309
310 /**
311 * Escape String
312 *
313 * @access public
314 * @param string
315 * @param bool whether or not the string will be used in a LIKE condition
316 * @return string
317 */
318 function escape_str($str, $like = FALSE)
319 {
320 if (is_array($str))
321 {
322 foreach ($str as $key => $val)
323 {
324 $str[$key] = $this->escape_str($val, $like);
325 }
326
327 return $str;
328 }
Timothy Warrenb5a43b02011-10-04 17:26:04 -0400329
Timothy Warren47663972011-10-05 16:44:50 -0400330 //Escape the string
331 $str = $this->conn_id->quote($str);
Timothy Warrenb5a43b02011-10-04 17:26:04 -0400332
Timothy Warren47663972011-10-05 16:44:50 -0400333 //If there are duplicated quotes, trim them away
Timothy Warrend6691532011-10-07 10:03:01 -0400334 if (strpos($str, "'") === 0)
Timothy Warrenec193322011-10-07 09:53:35 -0400335 {
336 $str = substr($str, 1, -1);
337 }
338
Timothy Warren80ab8162011-08-22 18:26:12 -0400339 // escape LIKE condition wildcards
340 if ($like === TRUE)
341 {
342 $str = str_replace( array('%', '_', $this->_like_escape_chr),
343 array($this->_like_escape_chr.'%', $this->_like_escape_chr.'_', $this->_like_escape_chr.$this->_like_escape_chr),
344 $str);
345 }
346
347 return $str;
348 }
349
350 // --------------------------------------------------------------------
351
352 /**
353 * Affected Rows
354 *
355 * @access public
356 * @return integer
357 */
358 function affected_rows()
359 {
Timothy Warren51a48882011-09-14 13:47:06 -0400360 return $this->affect_rows;
Timothy Warren80ab8162011-08-22 18:26:12 -0400361 }
362
363 // --------------------------------------------------------------------
364
365 /**
366 * Insert ID
Timothy Warren57cea512011-09-14 14:26:28 -0400367 *
Timothy Warren80ab8162011-08-22 18:26:12 -0400368 * @access public
369 * @return integer
370 */
Timothy Warren51a48882011-09-14 13:47:06 -0400371 function insert_id($name=NULL)
Timothy Warren80ab8162011-08-22 18:26:12 -0400372 {
Timothy Warren33512752011-10-07 09:51:49 -0400373 //Convenience method for postgres insertid
Timothy Warrend6691532011-10-07 10:03:01 -0400374 if (strpos($this->hostname, 'pgsql') !== FALSE)
Timothy Warren33512752011-10-07 09:51:49 -0400375 {
376 $v = $this->_version();
377
378 $table = func_num_args() > 0 ? func_get_arg(0) : NULL;
379
380 if ($table == NULL && $v >= '8.1')
381 {
382 $sql='SELECT LASTVAL() as ins_id';
383 }
384 $query = $this->query($sql);
385 $row = $query->row();
386 return $row->ins_id;
387 }
388 else
389 {
390 return $this->conn_id->lastInsertId($name);
391 }
Timothy Warren80ab8162011-08-22 18:26:12 -0400392 }
393
394 // --------------------------------------------------------------------
395
396 /**
397 * "Count All" query
398 *
399 * Generates a platform-specific query string that counts all records in
400 * the specified database
401 *
402 * @access public
403 * @param string
404 * @return string
405 */
406 function count_all($table = '')
407 {
408 if ($table == '')
409 {
410 return 0;
411 }
412
413 $query = $this->query($this->_count_string . $this->_protect_identifiers('numrows') . " FROM " . $this->_protect_identifiers($table, TRUE, NULL, FALSE));
414
415 if ($query->num_rows() == 0)
416 {
417 return 0;
418 }
419
420 $row = $query->row();
421 $this->_reset_select();
422 return (int) $row->numrows;
423 }
424
425 // --------------------------------------------------------------------
426
427 /**
428 * Show table query
429 *
430 * Generates a platform-specific query string so that the table names can be fetched
431 *
432 * @access private
433 * @param boolean
434 * @return string
435 */
436 function _list_tables($prefix_limit = FALSE)
437 {
438 $sql = "SHOW TABLES FROM `".$this->database."`";
439
440 if ($prefix_limit !== FALSE AND $this->dbprefix != '')
441 {
Timothy Warren33512752011-10-07 09:51:49 -0400442 //$sql .= " LIKE '".$this->escape_like_str($this->dbprefix)."%' ".sprintf($this->_like_escape_str, $this->_like_escape_chr);
Timothy Warren80ab8162011-08-22 18:26:12 -0400443 return FALSE; // not currently supported
444 }
445
446 return $sql;
447 }
448
449 // --------------------------------------------------------------------
450
451 /**
452 * Show column query
453 *
454 * Generates a platform-specific query string so that the column names can be fetched
455 *
456 * @access public
457 * @param string the table name
458 * @return string
459 */
460 function _list_columns($table = '')
461 {
462 return "SHOW COLUMNS FROM ".$table;
463 }
464
465 // --------------------------------------------------------------------
466
467 /**
468 * Field data query
469 *
470 * Generates a platform-specific query so that the column data can be retrieved
471 *
472 * @access public
473 * @param string the table name
474 * @return object
475 */
476 function _field_data($table)
477 {
478 return "SELECT TOP 1 FROM ".$table;
479 }
480
481 // --------------------------------------------------------------------
482
483 /**
484 * The error message string
485 *
486 * @access private
487 * @return string
488 */
489 function _error_message()
490 {
Timothy Warrenab347582011-08-23 12:29:29 -0400491 $error_array = $this->conn_id->errorInfo();
492 return $error_array[2];
Timothy Warren80ab8162011-08-22 18:26:12 -0400493 }
494
495 // --------------------------------------------------------------------
496
497 /**
498 * The error message number
499 *
500 * @access private
501 * @return integer
502 */
503 function _error_number()
504 {
Timothy Warrenab347582011-08-23 12:29:29 -0400505 return $this->conn_id->errorCode();
Timothy Warren80ab8162011-08-22 18:26:12 -0400506 }
507
508 // --------------------------------------------------------------------
509
510 /**
511 * Escape the SQL Identifiers
512 *
513 * This function escapes column and table names
514 *
515 * @access private
516 * @param string
517 * @return string
518 */
519 function _escape_identifiers($item)
520 {
521 if ($this->_escape_char == '')
522 {
523 return $item;
524 }
525
526 foreach ($this->_reserved_identifiers as $id)
527 {
528 if (strpos($item, '.'.$id) !== FALSE)
529 {
530 $str = $this->_escape_char. str_replace('.', $this->_escape_char.'.', $item);
531
532 // remove duplicates if the user already included the escape
533 return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
534 }
535 }
536
537 if (strpos($item, '.') !== FALSE)
538 {
539 $str = $this->_escape_char.str_replace('.', $this->_escape_char.'.'.$this->_escape_char, $item).$this->_escape_char;
Timothy Warren018af7a2011-09-07 12:07:35 -0400540
Timothy Warren80ab8162011-08-22 18:26:12 -0400541 }
542 else
543 {
544 $str = $this->_escape_char.$item.$this->_escape_char;
545 }
546
547 // remove duplicates if the user already included the escape
548 return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
549 }
550
551 // --------------------------------------------------------------------
552
553 /**
554 * From Tables
555 *
556 * This function implicitly groups FROM tables so there is no confusion
557 * about operator precedence in harmony with SQL standards
558 *
559 * @access public
560 * @param type
561 * @return type
562 */
563 function _from_tables($tables)
564 {
565 if ( ! is_array($tables))
566 {
567 $tables = array($tables);
568 }
569
Timothy Warrenab347582011-08-23 12:29:29 -0400570 return (count($tables) == 1) ? $tables[0] : '('.implode(', ', $tables).')';
Timothy Warren80ab8162011-08-22 18:26:12 -0400571 }
572
573 // --------------------------------------------------------------------
574
575 /**
576 * Insert statement
577 *
578 * Generates a platform-specific insert string from the supplied data
579 *
580 * @access public
581 * @param string the table name
582 * @param array the insert keys
583 * @param array the insert values
584 * @return string
585 */
586 function _insert($table, $keys, $values)
587 {
588 return "INSERT INTO ".$table." (".implode(', ', $keys).") VALUES (".implode(', ', $values).")";
589 }
Timothy Warrenb5a43b02011-10-04 17:26:04 -0400590
591 // --------------------------------------------------------------------
592
593 /**
594 * Insert_batch statement
595 *
596 * Generates a platform-specific insert string from the supplied data
597 *
598 * @access public
599 * @param string the table name
600 * @param array the insert keys
601 * @param array the insert values
602 * @return string
603 */
604 function _insert_batch($table, $keys, $values)
605 {
606 return "INSERT INTO ".$table." (".implode(', ', $keys).") VALUES ".implode(', ', $values);
607 }
Timothy Warren80ab8162011-08-22 18:26:12 -0400608
609 // --------------------------------------------------------------------
610
611 /**
612 * Update statement
613 *
614 * Generates a platform-specific update string from the supplied data
615 *
616 * @access public
617 * @param string the table name
618 * @param array the update data
619 * @param array the where clause
620 * @param array the orderby clause
621 * @param array the limit clause
622 * @return string
623 */
624 function _update($table, $values, $where, $orderby = array(), $limit = FALSE)
625 {
626 foreach ($values as $key => $val)
627 {
628 $valstr[] = $key." = ".$val;
629 }
630
631 $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
632
633 $orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
634
635 $sql = "UPDATE ".$table." SET ".implode(', ', $valstr);
636
637 $sql .= ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : '';
638
639 $sql .= $orderby.$limit;
640
641 return $sql;
642 }
Timothy Warrenb5a43b02011-10-04 17:26:04 -0400643
644 // --------------------------------------------------------------------
645
646 /**
647 * Update_Batch statement
648 *
649 * Generates a platform-specific batch update string from the supplied data
650 *
651 * @access public
652 * @param string the table name
653 * @param array the update data
654 * @param array the where clause
655 * @return string
656 */
657 function _update_batch($table, $values, $index, $where = NULL)
658 {
659 $ids = array();
660 $where = ($where != '' AND count($where) >=1) ? implode(" ", $where).' AND ' : '';
661
662 foreach ($values as $key => $val)
663 {
664 $ids[] = $val[$index];
665
666 foreach (array_keys($val) as $field)
667 {
668 if ($field != $index)
669 {
670 $final[$field][] = 'WHEN '.$index.' = '.$val[$index].' THEN '.$val[$field];
671 }
672 }
673 }
674
675 $sql = "UPDATE ".$table." SET ";
676 $cases = '';
677
678 foreach ($final as $k => $v)
679 {
680 $cases .= $k.' = CASE '."\n";
681 foreach ($v as $row)
682 {
683 $cases .= $row."\n";
684 }
685
686 $cases .= 'ELSE '.$k.' END, ';
687 }
688
689 $sql .= substr($cases, 0, -2);
690
691 $sql .= ' WHERE '.$where.$index.' IN ('.implode(',', $ids).')';
692
693 return $sql;
694 }
Timothy Warren80ab8162011-08-22 18:26:12 -0400695
696
697 // --------------------------------------------------------------------
698
699 /**
700 * Truncate statement
701 *
702 * Generates a platform-specific truncate string from the supplied data
703 * If the database does not support the truncate() command
704 * This function maps to "DELETE FROM table"
705 *
706 * @access public
707 * @param string the table name
708 * @return string
709 */
710 function _truncate($table)
711 {
712 return $this->_delete($table);
713 }
714
715 // --------------------------------------------------------------------
716
717 /**
718 * Delete statement
719 *
720 * Generates a platform-specific delete string from the supplied data
721 *
722 * @access public
723 * @param string the table name
724 * @param array the where clause
725 * @param string the limit clause
726 * @return string
727 */
728 function _delete($table, $where = array(), $like = array(), $limit = FALSE)
729 {
730 $conditions = '';
731
732 if (count($where) > 0 OR count($like) > 0)
733 {
734 $conditions = "\nWHERE ";
735 $conditions .= implode("\n", $this->ar_where);
736
737 if (count($where) > 0 && count($like) > 0)
738 {
739 $conditions .= " AND ";
740 }
741 $conditions .= implode("\n", $like);
742 }
743
744 $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
745
746 return "DELETE FROM ".$table.$conditions.$limit;
747 }
748
749 // --------------------------------------------------------------------
750
751 /**
752 * Limit string
753 *
754 * Generates a platform-specific LIMIT clause
755 *
756 * @access public
757 * @param string the sql query string
758 * @param integer the number of rows to limit the query to
759 * @param integer the offset value
760 * @return string
761 */
762 function _limit($sql, $limit, $offset)
763 {
Timothy Warrend6691532011-10-07 10:03:01 -0400764 if (strpos($this->hostname, 'cubrid') !== FALSE || strpos($this->hostname, 'sqlite') !== FALSE)
Timothy Warren0a43ad82011-09-15 20:15:19 -0400765 {
766 if ($offset == 0)
767 {
768 $offset = '';
769 }
770 else
771 {
772 $offset .= ", ";
773 }
774
775 return $sql."LIMIT ".$offset.$limit;
776 }
777 else
778 {
779 $sql .= "LIMIT ".$limit;
780
781 if ($offset > 0)
782 {
783 $sql .= " OFFSET ".$offset;
784 }
785
786 return $sql;
787 }
Timothy Warren80ab8162011-08-22 18:26:12 -0400788 }
789
790 // --------------------------------------------------------------------
791
792 /**
793 * Close DB Connection
794 *
795 * @access public
796 * @param resource
797 * @return void
798 */
799 function _close($conn_id)
800 {
Timothy Warren6a450cf2011-08-23 12:46:11 -0400801 $this->conn_id = null;
Timothy Warren80ab8162011-08-22 18:26:12 -0400802 }
803
804
805}
806
807
808
809/* End of file pdo_driver.php */
810/* Location: ./system/database/drivers/pdo/pdo_driver.php */