/** * on DBs that support it, commit the transaction */ public function commit_sql() { if (!parent::commit_sql()) { return false; } $sql = "COMMIT"; $this->query_start($sql, NULL, SQL_QUERY_AUX); $result = pg_query($this->pgsql, $sql); $this->query_end($result); pg_free_result($result); return true; }
public function commit_sql() { if (!parent::commit_sql()) { return false; } $this->query_start('', NULL, SQL_QUERY_AUX); $result = true; try { $this->pdb->commit(); } catch (PDOException $ex) { $this->lastError = $ex->getMessage(); $result = false; } $this->query_end($result); return $result; }
public function commit_sql() { if (!parent::commit_sql()) { return false; } $this->adodb->CommitTrans(); return true; }
/** * on DBs that support it, commit the transaction */ public function commit_sql() { if (!parent::commit_sql()) { return false; } return true; $sql = "COMMIT"; $this->query_start($sql, NULL, SQL_QUERY_AUX); $stmt = $this->parse_query($sql); $result = oci_execute($stmt); $this->query_end($result, $stmt); oci_free_statement($stmt); return true; }