gehe zur Dokumentation dieser Datei
17 if (!defined(
'ADODB_DIR')) die();
19 include_once(ADODB_DIR.
"/drivers/adodb-mysql.inc.php");
30 global $ADODB_EXTENSION;
if ($ADODB_EXTENSION) $this->rsPrefix .=
'ext_';
41 $this->_transmode = $transaction_mode;
42 if (empty($transaction_mode)) {
43 $this->Execute(
'SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ');
46 if (!stristr($transaction_mode,
'isolation')) $transaction_mode =
'ISOLATION LEVEL '.$transaction_mode;
47 $this->Execute(
"SET SESSION TRANSACTION ".$transaction_mode);
52 if ($this->transOff)
return true;
54 $this->Execute(
'SET AUTOCOMMIT=0');
55 $this->Execute(
'BEGIN');
61 if ($this->transOff)
return true;
64 if ($this->transCnt) $this->transCnt -= 1;
65 $ok = $this->Execute(
'COMMIT');
66 $this->Execute(
'SET AUTOCOMMIT=1');
67 return $ok ?
true :
false;
72 if ($this->transOff)
return true;
73 if ($this->transCnt) $this->transCnt -= 1;
74 $ok = $this->Execute(
'ROLLBACK');
75 $this->Execute(
'SET AUTOCOMMIT=1');
76 return $ok ?
true :
false;
82 if ($where) $where =
' where '.$where;
83 $rs = $this->Execute(
"select $col from $tables $where for update");
94 if ($mode ===
false) {
95 global $ADODB_FETCH_MODE;
96 $mode = $ADODB_FETCH_MODE;
101 case ADODB_FETCH_NUM: $this->fetchMode = MYSQL_NUM;
break;
102 case ADODB_FETCH_ASSOC:$this->fetchMode = MYSQL_ASSOC;
break;
104 case ADODB_FETCH_DEFAULT:
105 case ADODB_FETCH_BOTH:
106 default: $this->fetchMode = MYSQL_BOTH;
break;
109 $this->adodbFetchMode = $mode;
110 $this->ADORecordSet($queryID);
115 if (@$this->fields = mysql_fetch_array($this->_queryID,$this->fetchMode)) {
116 $this->_currentRow += 1;
120 $this->_currentRow += 1;
131 if ($mode ===
false) {
132 global $ADODB_FETCH_MODE;
133 $mode = $ADODB_FETCH_MODE;
137 case ADODB_FETCH_NUM: $this->fetchMode = MYSQL_NUM;
break;
138 case ADODB_FETCH_ASSOC:$this->fetchMode = MYSQL_ASSOC;
break;
140 case ADODB_FETCH_DEFAULT:
141 case ADODB_FETCH_BOTH:
143 $this->fetchMode = MYSQL_BOTH;
break;
145 $this->adodbFetchMode = $mode;
146 $this->ADORecordSet($queryID);
151 return adodb_movenext($this);
Sie sind hier: Home » MyOOS Benutzerhandbuch » ADOdb
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.