Commit b9c89f71 authored by Lukas Kahwe Smith's avatar Lukas Kahwe Smith Committed by Juozas Kaziukenas

Oracle cannot release savepoints

parent b2f10894
...@@ -884,7 +884,7 @@ class Connection implements DriverConnection ...@@ -884,7 +884,7 @@ class Connection implements DriverConnection
ConnectionException::savepointsNotSupported(); ConnectionException::savepointsNotSupported();
} }
return $this->_conn->exec($this->_platform->createSavePoint($savepoint)); $this->_conn->exec($this->_platform->createSavePoint($savepoint));
} }
/** /**
...@@ -900,7 +900,10 @@ class Connection implements DriverConnection ...@@ -900,7 +900,10 @@ class Connection implements DriverConnection
ConnectionException::savepointsNotSupported(); ConnectionException::savepointsNotSupported();
} }
return $this->_conn->exec($this->_platform->releaseSavePoint($savepoint)); $sql = $this->_platform->releaseSavePoint($savepoint);
if ($sql) {
$this->_conn->exec($sql);
}
} }
/** /**
...@@ -916,7 +919,7 @@ class Connection implements DriverConnection ...@@ -916,7 +919,7 @@ class Connection implements DriverConnection
ConnectionException::savepointsNotSupported(); ConnectionException::savepointsNotSupported();
} }
return $this->_conn->exec($this->_platform->rollbackSavePoint($savepoint)); $this->_conn->exec($this->_platform->rollbackSavePoint($savepoint));
} }
/** /**
......
...@@ -700,4 +700,15 @@ LEFT JOIN all_cons_columns r_cols ...@@ -700,4 +700,15 @@ LEFT JOIN all_cons_columns r_cols
'urowid' => 'string' 'urowid' => 'string'
); );
} }
/**
* Generate SQL to release a savepoint
*
* @param string $savepoint
* @return string
*/
public function releaseSavePoint($savepoint)
{
return '';
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment