ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

adodb-pdo.inc.php
Go to the documentation of this file.
1 <?php
22 // security - hide paths
23 if (!defined('ADODB_DIR')) die();
24 
25 
26 /*
27 enum pdo_param_type {
28 PDO::PARAM_NULL, 0
29 
30 /* int as in long (the php native int type).
31  * If you mark a column as an int, PDO expects get_col to return
32  * a pointer to a long
33 PDO::PARAM_INT, 1
34 
35 /* get_col ptr should point to start of the string buffer
36 PDO::PARAM_STR, 2
37 
38 /* get_col: when len is 0 ptr should point to a php_stream *,
39  * otherwise it should behave like a string. Indicate a NULL field
40  * value by setting the ptr to NULL
41 PDO::PARAM_LOB, 3
42 
43 /* get_col: will expect the ptr to point to a new PDOStatement object handle,
44  * but this isn't wired up yet
45 PDO::PARAM_STMT, 4 /* hierarchical result set
46 
47 /* get_col ptr should point to a zend_bool
48 PDO::PARAM_BOOL, 5
49 
50 
51 /* magic flag to denote a parameter as being input/output
52 PDO::PARAM_INPUT_OUTPUT = 0x80000000
53 };
54 */
55 
56 function adodb_pdo_type($t)
57 {
58  switch($t) {
59  case 2: return 'VARCHAR';
60  case 3: return 'BLOB';
61  default: return 'NUMERIC';
62  }
63 }
64 
65 /*----------------------------------------------------------------------------*/
66 
67 
68 class ADODB_pdo extends ADOConnection {
69  var $databaseType = "pdo";
70  var $dataProvider = "pdo";
71  var $fmtDate = "'Y-m-d'";
72  var $fmtTimeStamp = "'Y-m-d, h:i:sA'";
73  var $replaceQuote = "''"; // string to use to replace quotes
74  var $hasAffectedRows = true;
75  var $_bindInputArray = true;
77  var $_genSeqSQL = "create table %s (id integer)";
79  var $_autocommit = true;
80  var $_haserrorfunctions = true;
82 
83  var $_errormsg = false;
84  var $_errorno = false;
85 
86  var $dsnType = '';
87  var $stmt = false;
88  var $_driver;
89 
90  function __construct()
91  {
92  }
93 
94  function _UpdatePDO()
95  {
96  $d = $this->_driver;
97  $this->fmtDate = $d->fmtDate;
98  $this->fmtTimeStamp = $d->fmtTimeStamp;
99  $this->replaceQuote = $d->replaceQuote;
100  $this->sysDate = $d->sysDate;
101  $this->sysTimeStamp = $d->sysTimeStamp;
102  $this->random = $d->random;
103  $this->concat_operator = $d->concat_operator;
104  $this->nameQuote = $d->nameQuote;
105 
106  $this->hasGenID = $d->hasGenID;
107  $this->_genIDSQL = $d->_genIDSQL;
108  $this->_genSeqSQL = $d->_genSeqSQL;
109  $this->_dropSeqSQL = $d->_dropSeqSQL;
110 
111  $d->_init($this);
112  }
113 
114  function Time()
115  {
116  if (!empty($this->_driver->_hasdual)) {
117  $sql = "select $this->sysTimeStamp from dual";
118  }
119  else {
120  $sql = "select $this->sysTimeStamp";
121  }
122 
123  $rs = $this->_Execute($sql);
124  if ($rs && !$rs->EOF) {
125  return $this->UnixTimeStamp(reset($rs->fields));
126  }
127 
128  return false;
129  }
130 
131  // returns true or false
132  function _connect($argDSN, $argUsername, $argPassword, $argDatabasename, $persist=false)
133  {
134  $at = strpos($argDSN,':');
135  $this->dsnType = substr($argDSN,0,$at);
136 
137  if ($argDatabasename) {
138  switch($this->dsnType){
139  case 'sqlsrv':
140  $argDSN .= ';database='.$argDatabasename;
141  break;
142  case 'mssql':
143  case 'mysql':
144  case 'oci':
145  case 'pgsql':
146  case 'sqlite':
147  default:
148  $argDSN .= ';dbname='.$argDatabasename;
149  }
150  }
151  try {
152  $this->_connectionID = new PDO($argDSN, $argUsername, $argPassword);
153  } catch (Exception $e) {
154  $this->_connectionID = false;
155  $this->_errorno = -1;
156  //var_dump($e);
157  $this->_errormsg = 'Connection attempt failed: '.$e->getMessage();
158  return false;
159  }
160 
161  if ($this->_connectionID) {
162  switch(ADODB_ASSOC_CASE){
163  case ADODB_ASSOC_CASE_LOWER:
164  $m = PDO::CASE_LOWER;
165  break;
166  case ADODB_ASSOC_CASE_UPPER:
167  $m = PDO::CASE_UPPER;
168  break;
169  default:
170  case ADODB_ASSOC_CASE_NATIVE:
171  $m = PDO::CASE_NATURAL;
172  break;
173  }
174 
175  //$this->_connectionID->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_SILENT );
176  $this->_connectionID->setAttribute(PDO::ATTR_CASE,$m);
177 
178  $class = 'ADODB_pdo_'.$this->dsnType;
179  //$this->_connectionID->setAttribute(PDO::ATTR_AUTOCOMMIT,true);
180  switch($this->dsnType) {
181  case 'mssql':
182  case 'mysql':
183  case 'oci':
184  case 'pgsql':
185  case 'sqlite':
186  case 'sqlsrv':
187  include_once(ADODB_DIR.'/drivers/adodb-pdo_'.$this->dsnType.'.inc.php');
188  break;
189  }
190  if (class_exists($class)) {
191  $this->_driver = new $class();
192  }
193  else {
194  $this->_driver = new ADODB_pdo_base();
195  }
196 
197  $this->_driver->_connectionID = $this->_connectionID;
198  $this->_UpdatePDO();
199  $this->_driver->database = $this->database;
200  return true;
201  }
202  $this->_driver = new ADODB_pdo_base();
203  return false;
204  }
205 
206  function Concat()
207  {
208  $args = func_get_args();
209  if(method_exists($this->_driver, 'Concat')) {
210  return call_user_func_array(array($this->_driver, 'Concat'), $args);
211  }
212 
213  if (PHP_VERSION >= 5.3) {
214  return call_user_func_array('parent::Concat', $args);
215  }
216  return call_user_func_array(array($this,'parent::Concat'), $args);
217  }
218 
219  // returns true or false
220  function _pconnect($argDSN, $argUsername, $argPassword, $argDatabasename)
221  {
222  return $this->_connect($argDSN, $argUsername, $argPassword, $argDatabasename, true);
223  }
224 
225  /*------------------------------------------------------------------------------*/
226 
227 
228  function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)
229  {
230  $save = $this->_driver->fetchMode;
231  $this->_driver->fetchMode = $this->fetchMode;
232  $this->_driver->debug = $this->debug;
233  $ret = $this->_driver->SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
234  $this->_driver->fetchMode = $save;
235  return $ret;
236  }
237 
238 
239  function ServerInfo()
240  {
241  return $this->_driver->ServerInfo();
242  }
243 
244  function MetaTables($ttype=false,$showSchema=false,$mask=false)
245  {
246  return $this->_driver->MetaTables($ttype,$showSchema,$mask);
247  }
248 
249  function MetaColumns($table,$normalize=true)
250  {
251  return $this->_driver->MetaColumns($table,$normalize);
252  }
253 
254  function InParameter(&$stmt,&$var,$name,$maxLen=4000,$type=false)
255  {
256  $obj = $stmt[1];
257  if ($type) {
258  $obj->bindParam($name, $var, $type, $maxLen);
259  }
260  else {
261  $obj->bindParam($name, $var);
262  }
263  }
264 
265  function OffsetDate($dayFraction,$date=false)
266  {
267  return $this->_driver->OffsetDate($dayFraction,$date);
268  }
269 
270  function SelectDB($dbName)
271  {
272  return $this->_driver->SelectDB($dbName);
273  }
274 
275  function SQLDate($fmt, $col=false)
276  {
277  return $this->_driver->SQLDate($fmt, $col);
278  }
279 
280  function ErrorMsg()
281  {
282  if ($this->_errormsg !== false) {
283  return $this->_errormsg;
284  }
285  if (!empty($this->_stmt)) {
286  $arr = $this->_stmt->errorInfo();
287  }
288  else if (!empty($this->_connectionID)) {
289  $arr = $this->_connectionID->errorInfo();
290  }
291  else {
292  return 'No Connection Established';
293  }
294 
295  if ($arr) {
296  if (sizeof($arr)<2) {
297  return '';
298  }
299  if ((integer)$arr[0]) {
300  return $arr[2];
301  }
302  else {
303  return '';
304  }
305  }
306  else {
307  return '-1';
308  }
309  }
310 
311 
312  function ErrorNo()
313  {
314  if ($this->_errorno !== false) {
315  return $this->_errorno;
316  }
317  if (!empty($this->_stmt)) {
318  $err = $this->_stmt->errorCode();
319  }
320  else if (!empty($this->_connectionID)) {
321  $arr = $this->_connectionID->errorInfo();
322  if (isset($arr[0])) {
323  $err = $arr[0];
324  }
325  else {
326  $err = -1;
327  }
328  } else {
329  return 0;
330  }
331 
332  if ($err == '00000') {
333  return 0; // allows empty check
334  }
335  return $err;
336  }
337 
338  function SetTransactionMode($transaction_mode)
339  {
340  if(method_exists($this->_driver, 'SetTransactionMode')) {
341  return $this->_driver->SetTransactionMode($transaction_mode);
342  }
343 
344  return parent::SetTransactionMode($seqname);
345  }
346 
347  function BeginTrans()
348  {
349  if(method_exists($this->_driver, 'BeginTrans')) {
350  return $this->_driver->BeginTrans();
351  }
352 
353  if (!$this->hasTransactions) {
354  return false;
355  }
356  if ($this->transOff) {
357  return true;
358  }
359  $this->transCnt += 1;
360  $this->_autocommit = false;
361  $this->_connectionID->setAttribute(PDO::ATTR_AUTOCOMMIT,false);
362 
363  return $this->_connectionID->beginTransaction();
364  }
365 
366  function CommitTrans($ok=true)
367  {
368  if(method_exists($this->_driver, 'CommitTrans')) {
369  return $this->_driver->CommitTrans($ok);
370  }
371 
372  if (!$this->hasTransactions) {
373  return false;
374  }
375  if ($this->transOff) {
376  return true;
377  }
378  if (!$ok) {
379  return $this->RollbackTrans();
380  }
381  if ($this->transCnt) {
382  $this->transCnt -= 1;
383  }
384  $this->_autocommit = true;
385 
386  $ret = $this->_connectionID->commit();
387  $this->_connectionID->setAttribute(PDO::ATTR_AUTOCOMMIT,true);
388  return $ret;
389  }
390 
391  function RollbackTrans()
392  {
393  if(method_exists($this->_driver, 'RollbackTrans')) {
394  return $this->_driver->RollbackTrans();
395  }
396 
397  if (!$this->hasTransactions) {
398  return false;
399  }
400  if ($this->transOff) {
401  return true;
402  }
403  if ($this->transCnt) {
404  $this->transCnt -= 1;
405  }
406  $this->_autocommit = true;
407 
408  $ret = $this->_connectionID->rollback();
409  $this->_connectionID->setAttribute(PDO::ATTR_AUTOCOMMIT,true);
410  return $ret;
411  }
412 
413  function Prepare($sql)
414  {
415  $this->_stmt = $this->_connectionID->prepare($sql);
416  if ($this->_stmt) {
417  return array($sql,$this->_stmt);
418  }
419 
420  return false;
421  }
422 
423  function PrepareStmt($sql)
424  {
425  $stmt = $this->_connectionID->prepare($sql);
426  if (!$stmt) {
427  return false;
428  }
429  $obj = new ADOPDOStatement($stmt,$this);
430  return $obj;
431  }
432 
433  function CreateSequence($seqname='adodbseq',$startID=1)
434  {
435  if(method_exists($this->_driver, 'CreateSequence')) {
436  return $this->_driver->CreateSequence($seqname, $startID);
437  }
438 
439  return parent::CreateSequence($seqname, $startID);
440  }
441 
442  function DropSequence($seqname='adodbseq')
443  {
444  if(method_exists($this->_driver, 'DropSequence')) {
445  return $this->_driver->DropSequence($seqname);
446  }
447 
448  return parent::DropSequence($seqname);
449  }
450 
451  function GenID($seqname='adodbseq',$startID=1)
452  {
453  if(method_exists($this->_driver, 'GenID')) {
454  return $this->_driver->GenID($seqname, $startID);
455  }
456 
457  return parent::GenID($seqname, $startID);
458  }
459 
460 
461  /* returns queryID or false */
462  function _query($sql,$inputarr=false)
463  {
464  if (is_array($sql)) {
465  $stmt = $sql[1];
466  } else {
467  $stmt = $this->_connectionID->prepare($sql);
468  }
469  #adodb_backtrace();
470  #var_dump($this->_bindInputArray);
471  if ($stmt) {
472  $this->_driver->debug = $this->debug;
473  if ($inputarr) {
474  $ok = $stmt->execute($inputarr);
475  }
476  else {
477  $ok = $stmt->execute();
478  }
479  }
480 
481 
482  $this->_errormsg = false;
483  $this->_errorno = false;
484 
485  if ($ok) {
486  $this->_stmt = $stmt;
487  return $stmt;
488  }
489 
490  if ($stmt) {
491 
492  $arr = $stmt->errorinfo();
493  if ((integer)$arr[1]) {
494  $this->_errormsg = $arr[2];
495  $this->_errorno = $arr[1];
496  }
497 
498  } else {
499  $this->_errormsg = false;
500  $this->_errorno = false;
501  }
502  return false;
503  }
504 
505  // returns true or false
506  function _close()
507  {
508  $this->_stmt = false;
509  return true;
510  }
511 
512  function _affectedrows()
513  {
514  return ($this->_stmt) ? $this->_stmt->rowCount() : 0;
515  }
516 
517  function _insertid()
518  {
519  return ($this->_connectionID) ? $this->_connectionID->lastInsertId() : 0;
520  }
521 
531  function qstr($s, $magic_quotes = false)
532  {
533  if (!$magic_quotes) {
534  if ($this->_connectionID) {
535  return $this->_connectionID->quote($s);
536  }
537  return "'" . str_replace("'", $this->replaceQuote, $s) . "'";
538  }
539 
540  // undo magic quotes for "
541  $s = str_replace('\\"', '"', $s);
542  return "'$s'";
543  }
544 
545 }
546 
547 class ADODB_pdo_base extends ADODB_pdo {
548 
549  var $sysDate = "'?'";
550  var $sysTimeStamp = "'?'";
551 
552 
553  function _init($parentDriver)
554  {
555  $parentDriver->_bindInputArray = true;
556  #$parentDriver->_connectionID->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY,true);
557  }
558 
559  function ServerInfo()
560  {
561  return ADOConnection::ServerInfo();
562  }
563 
564  function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)
565  {
566  $ret = ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
567  return $ret;
568  }
569 
570  function MetaTables($ttype=false,$showSchema=false,$mask=false)
571  {
572  return false;
573  }
574 
575  function MetaColumns($table,$normalize=true)
576  {
577  return false;
578  }
579 }
580 
582 
583  var $databaseType = "pdo";
584  var $dataProvider = "pdo";
585  var $_stmt;
587 
588  function __construct($stmt,$connection)
589  {
590  $this->_stmt = $stmt;
591  $this->_connectionID = $connection;
592  }
593 
594  function Execute($inputArr=false)
595  {
596  $savestmt = $this->_connectionID->_stmt;
597  $rs = $this->_connectionID->Execute(array(false,$this->_stmt),$inputArr);
598  $this->_connectionID->_stmt = $savestmt;
599  return $rs;
600  }
601 
602  function InParameter(&$var,$name,$maxLen=4000,$type=false)
603  {
604 
605  if ($type) {
606  $this->_stmt->bindParam($name,$var,$type,$maxLen);
607  }
608  else {
609  $this->_stmt->bindParam($name, $var);
610  }
611  }
612 
613  function Affected_Rows()
614  {
615  return ($this->_stmt) ? $this->_stmt->rowCount() : 0;
616  }
617 
618  function ErrorMsg()
619  {
620  if ($this->_stmt) {
621  $arr = $this->_stmt->errorInfo();
622  }
623  else {
624  $arr = $this->_connectionID->errorInfo();
625  }
626 
627  if (is_array($arr)) {
628  if ((integer) $arr[0] && isset($arr[2])) {
629  return $arr[2];
630  }
631  else {
632  return '';
633  }
634  } else {
635  return '-1';
636  }
637  }
638 
639  function NumCols()
640  {
641  return ($this->_stmt) ? $this->_stmt->columnCount() : 0;
642  }
643 
644  function ErrorNo()
645  {
646  if ($this->_stmt) {
647  return $this->_stmt->errorCode();
648  }
649  else {
650  return $this->_connectionID->errorInfo();
651  }
652  }
653 }
654 
655 /*--------------------------------------------------------------------------------------
656  Class Name: Recordset
657 --------------------------------------------------------------------------------------*/
658 
659 class ADORecordSet_pdo extends ADORecordSet {
660 
661  var $bind = false;
662  var $databaseType = "pdo";
663  var $dataProvider = "pdo";
664 
665  function __construct($id,$mode=false)
666  {
667  if ($mode === false) {
668  global $ADODB_FETCH_MODE;
669  $mode = $ADODB_FETCH_MODE;
670  }
671  $this->adodbFetchMode = $mode;
672  switch($mode) {
673  case ADODB_FETCH_NUM: $mode = PDO::FETCH_NUM; break;
674  case ADODB_FETCH_ASSOC: $mode = PDO::FETCH_ASSOC; break;
675 
676  case ADODB_FETCH_BOTH:
677  default: $mode = PDO::FETCH_BOTH; break;
678  }
679  $this->fetchMode = $mode;
680 
681  $this->_queryID = $id;
682  parent::__construct($id);
683  }
684 
685 
686  function Init()
687  {
688  if ($this->_inited) {
689  return;
690  }
691  $this->_inited = true;
692  if ($this->_queryID) {
693  @$this->_initrs();
694  }
695  else {
696  $this->_numOfRows = 0;
697  $this->_numOfFields = 0;
698  }
699  if ($this->_numOfRows != 0 && $this->_currentRow == -1) {
700  $this->_currentRow = 0;
701  if ($this->EOF = ($this->_fetch() === false)) {
702  $this->_numOfRows = 0; // _numOfRows could be -1
703  }
704  } else {
705  $this->EOF = true;
706  }
707  }
708 
709  function _initrs()
710  {
711  global $ADODB_COUNTRECS;
712 
713  $this->_numOfRows = ($ADODB_COUNTRECS) ? @$this->_queryID->rowCount() : -1;
714  if (!$this->_numOfRows) {
715  $this->_numOfRows = -1;
716  }
717  $this->_numOfFields = $this->_queryID->columnCount();
718  }
719 
720  // returns the field object
721  function FetchField($fieldOffset = -1)
722  {
723  $off=$fieldOffset+1; // offsets begin at 1
724 
725  $o= new ADOFieldObject();
726  $arr = @$this->_queryID->getColumnMeta($fieldOffset);
727  if (!$arr) {
728  $o->name = 'bad getColumnMeta()';
729  $o->max_length = -1;
730  $o->type = 'VARCHAR';
731  $o->precision = 0;
732  # $false = false;
733  return $o;
734  }
735  //adodb_pr($arr);
736  $o->name = $arr['name'];
737  if (isset($arr['sqlsrv:decl_type']) && $arr['sqlsrv:decl_type'] <> "null")
738  {
739  /*
740  * If the database is SQL server, use the native built-ins
741  */
742  $o->type = $arr['sqlsrv:decl_type'];
743  }
744  elseif (isset($arr['native_type']) && $arr['native_type'] <> "null")
745  {
746  $o->type = $arr['native_type'];
747  }
748  else
749  {
750  $o->type = adodb_pdo_type($arr['pdo_type']);
751  }
752 
753  $o->max_length = $arr['len'];
754  $o->precision = $arr['precision'];
755 
756  switch(ADODB_ASSOC_CASE) {
757  case ADODB_ASSOC_CASE_LOWER:
758  $o->name = strtolower($o->name);
759  break;
760  case ADODB_ASSOC_CASE_UPPER:
761  $o->name = strtoupper($o->name);
762  break;
763  }
764  return $o;
765  }
766 
767  function _seek($row)
768  {
769  return false;
770  }
771 
772  function _fetch()
773  {
774  if (!$this->_queryID) {
775  return false;
776  }
777 
778  $this->fields = $this->_queryID->fetch($this->fetchMode);
779  return !empty($this->fields);
780  }
781 
782  function _close()
783  {
784  $this->_queryID = false;
785  }
786 
787  function Fields($colname)
788  {
789  if ($this->adodbFetchMode != ADODB_FETCH_NUM) {
790  return @$this->fields[$colname];
791  }
792 
793  if (!$this->bind) {
794  $this->bind = array();
795  for ($i=0; $i < $this->_numOfFields; $i++) {
796  $o = $this->FetchField($i);
797  $this->bind[strtoupper($o->name)] = $i;
798  }
799  }
800  return $this->fields[$this->bind[strtoupper($colname)]];
801  }
802 
803 }
ADODB_pdo\$_bindInputArray
$_bindInputArray
Definition: adodb-pdo.inc.php:75
ADODB_pdo\MetaColumns
MetaColumns($table, $normalize=true)
Definition: adodb-pdo.inc.php:249
ADODB_pdo_base\MetaTables
MetaTables($ttype=false, $showSchema=false, $mask=false)
Definition: adodb-pdo.inc.php:570
ADODB_pdo\$_driver
$_driver
Definition: adodb-pdo.inc.php:88
ADORecordSet_pdo\$dataProvider
$dataProvider
Definition: adodb-pdo.inc.php:663
ADODB_pdo_base
Definition: adodb-pdo.inc.php:547
ADODB_pdo\SelectLimit
SelectLimit($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
Definition: adodb-pdo.inc.php:228
ADODB_pdo\_UpdatePDO
_UpdatePDO()
Definition: adodb-pdo.inc.php:94
$rs
if(isset($_REQUEST['nrows'])) else $rs
Definition: server.php:94
$sql
$sql
Definition: server.php:84
$ADODB_FETCH_MODE
$ADODB_FETCH_MODE
Definition: functions_db.inc.php:70
ADODB_pdo\ErrorNo
ErrorNo()
Definition: adodb-pdo.inc.php:312
ADODB_pdo\CreateSequence
CreateSequence($seqname='adodbseq', $startID=1)
Definition: adodb-pdo.inc.php:433
ADORecordSet_pdo
Definition: adodb-pdo.inc.php:659
ADOPDOStatement\ErrorNo
ErrorNo()
Definition: adodb-pdo.inc.php:644
ADODB_pdo\_pconnect
_pconnect($argDSN, $argUsername, $argPassword, $argDatabasename)
Definition: adodb-pdo.inc.php:220
ADODB_pdo\$_haserrorfunctions
$_haserrorfunctions
Definition: adodb-pdo.inc.php:80
ADORecordSet_pdo\$bind
$bind
Definition: adodb-pdo.inc.php:661
ADODB_pdo\Concat
Concat()
Definition: adodb-pdo.inc.php:206
ADOPDOStatement\ErrorMsg
ErrorMsg()
Definition: adodb-pdo.inc.php:618
ADODB_pdo\$hasAffectedRows
$hasAffectedRows
Definition: adodb-pdo.inc.php:74
ADODB_pdo\_query
_query($sql, $inputarr=false)
Definition: adodb-pdo.inc.php:462
ADOPDOStatement
Definition: adodb-pdo.inc.php:581
ADODB_pdo\SetTransactionMode
SetTransactionMode($transaction_mode)
Definition: adodb-pdo.inc.php:338
ADODB_pdo\$_lastAffectedRows
$_lastAffectedRows
Definition: adodb-pdo.inc.php:81
$database
$database
Definition: collate-convert.php:18
ADORecordSet_pdo\Init
Init()
Definition: adodb-pdo.inc.php:686
ADODB_pdo\_close
_close()
Definition: adodb-pdo.inc.php:506
ADOPDOStatement\$dataProvider
$dataProvider
Definition: adodb-pdo.inc.php:584
ADODB_pdo\$fmtDate
$fmtDate
Definition: adodb-pdo.inc.php:71
ADODB_pdo\Prepare
Prepare($sql)
Definition: adodb-pdo.inc.php:413
ADOPDOStatement\__construct
__construct($stmt, $connection)
Definition: adodb-pdo.inc.php:588
ADODB_pdo\OffsetDate
OffsetDate($dayFraction, $date=false)
Definition: adodb-pdo.inc.php:265
ADOPDOStatement\InParameter
InParameter(&$var, $name, $maxLen=4000, $type=false)
Definition: adodb-pdo.inc.php:602
ADODB_pdo_base\ServerInfo
ServerInfo()
Definition: adodb-pdo.inc.php:559
ADODB_pdo\SQLDate
SQLDate($fmt, $col=false)
Definition: adodb-pdo.inc.php:275
ADOPDOStatement\$databaseType
$databaseType
Definition: adodb-pdo.inc.php:583
$type
$type
Definition: dcm.php:17
ADOPDOStatement\Affected_Rows
Affected_Rows()
Definition: adodb-pdo.inc.php:613
ADODB_pdo\qstr
qstr($s, $magic_quotes=false)
Definition: adodb-pdo.inc.php:531
ADORecordSet_pdo\Fields
Fields($colname)
Definition: adodb-pdo.inc.php:787
ADODB_pdo_base\_init
_init($parentDriver)
Definition: adodb-pdo.inc.php:553
ADODB_pdo\ServerInfo
ServerInfo()
Definition: adodb-pdo.inc.php:239
ADORecordSet_pdo\__construct
__construct($id, $mode=false)
Definition: adodb-pdo.inc.php:665
ADODB_pdo\PrepareStmt
PrepareStmt($sql)
Definition: adodb-pdo.inc.php:423
ADORecordSet_pdo\$databaseType
$databaseType
Definition: adodb-pdo.inc.php:662
ADODB_pdo\$_genIDSQL
$_genIDSQL
Definition: adodb-pdo.inc.php:76
ADODB_pdo\$_dropSeqSQL
$_dropSeqSQL
Definition: adodb-pdo.inc.php:78
ADODB_pdo
Definition: adodb-pdo.inc.php:68
ADODB_pdo\RollbackTrans
RollbackTrans()
Definition: adodb-pdo.inc.php:391
ADODB_pdo\$replaceQuote
$replaceQuote
Definition: adodb-pdo.inc.php:73
ADODB_pdo_base\MetaColumns
MetaColumns($table, $normalize=true)
Definition: adodb-pdo.inc.php:575
ADODB_pdo\_insertid
_insertid()
Definition: adodb-pdo.inc.php:517
ADODB_pdo\MetaTables
MetaTables($ttype=false, $showSchema=false, $mask=false)
Definition: adodb-pdo.inc.php:244
ADODB_pdo\GenID
GenID($seqname='adodbseq', $startID=1)
Definition: adodb-pdo.inc.php:451
ADOPDOStatement\Execute
Execute($inputArr=false)
Definition: adodb-pdo.inc.php:594
ADODB_pdo\$dataProvider
$dataProvider
Definition: adodb-pdo.inc.php:70
ADODB_pdo\DropSequence
DropSequence($seqname='adodbseq')
Definition: adodb-pdo.inc.php:442
ADODB_pdo\Time
Time()
Definition: adodb-pdo.inc.php:114
ADODB_pdo\__construct
__construct()
Definition: adodb-pdo.inc.php:90
ADODB_pdo_base\SelectLimit
SelectLimit($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
Definition: adodb-pdo.inc.php:564
ADODB_pdo\$databaseType
$databaseType
Definition: adodb-pdo.inc.php:69
adodb_pdo_type
adodb_pdo_type($t)
Definition: adodb-pdo.inc.php:56
ADODB_pdo\_affectedrows
_affectedrows()
Definition: adodb-pdo.inc.php:512
ADODB_pdo_base\$sysTimeStamp
$sysTimeStamp
Definition: adodb-pdo.inc.php:550
ADODB_pdo\$_errorno
$_errorno
Definition: adodb-pdo.inc.php:84
ADODB_pdo\ErrorMsg
ErrorMsg()
Definition: adodb-pdo.inc.php:280
ADODB_pdo\InParameter
InParameter(&$stmt, &$var, $name, $maxLen=4000, $type=false)
Definition: adodb-pdo.inc.php:254
$ADODB_COUNTRECS
$ADODB_COUNTRECS
Definition: functions_db.inc.php:34
ADORecordSet_pdo\_initrs
_initrs()
Definition: adodb-pdo.inc.php:709
ADODB_pdo\$fmtTimeStamp
$fmtTimeStamp
Definition: adodb-pdo.inc.php:72
ADODB_pdo\SelectDB
SelectDB($dbName)
Definition: adodb-pdo.inc.php:270
ADODB_pdo\$_errormsg
$_errormsg
Definition: adodb-pdo.inc.php:83
ADORecordSet_pdo\FetchField
FetchField($fieldOffset=-1)
Definition: adodb-pdo.inc.php:721
ADORecordSet_pdo\_seek
_seek($row)
Definition: adodb-pdo.inc.php:767
ADORecordSet_pdo\_close
_close()
Definition: adodb-pdo.inc.php:782
ADODB_pdo\_connect
_connect($argDSN, $argUsername, $argPassword, $argDatabasename, $persist=false)
Definition: adodb-pdo.inc.php:132
ADODB_pdo\CommitTrans
CommitTrans($ok=true)
Definition: adodb-pdo.inc.php:366
ADODB_pdo\$_genSeqSQL
$_genSeqSQL
Definition: adodb-pdo.inc.php:77
ADODB_pdo\BeginTrans
BeginTrans()
Definition: adodb-pdo.inc.php:347
ADODB_pdo_base\$sysDate
$sysDate
Definition: adodb-pdo.inc.php:549
ADORecordSet_pdo\_fetch
_fetch()
Definition: adodb-pdo.inc.php:772
ADODB_pdo\$_autocommit
$_autocommit
Definition: adodb-pdo.inc.php:79
ADOPDOStatement\$_connectionID
$_connectionID
Definition: adodb-pdo.inc.php:586
ADOPDOStatement\NumCols
NumCols()
Definition: adodb-pdo.inc.php:639
ADODB_pdo\$dsnType
$dsnType
Definition: adodb-pdo.inc.php:86
ADODB_pdo\$stmt
$stmt
Definition: adodb-pdo.inc.php:87
ADOPDOStatement\$_stmt
$_stmt
Definition: adodb-pdo.inc.php:585