From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/doctrine/dbal/src/Driver/OCI8/Statement.php | 103 --------------------- 1 file changed, 103 deletions(-) delete mode 100644 vendor/doctrine/dbal/src/Driver/OCI8/Statement.php (limited to 'vendor/doctrine/dbal/src/Driver/OCI8/Statement.php') diff --git a/vendor/doctrine/dbal/src/Driver/OCI8/Statement.php b/vendor/doctrine/dbal/src/Driver/OCI8/Statement.php deleted file mode 100644 index 408f0dd..0000000 --- a/vendor/doctrine/dbal/src/Driver/OCI8/Statement.php +++ /dev/null @@ -1,103 +0,0 @@ - $parameterMap - */ - public function __construct( - private readonly mixed $connection, - private readonly mixed $statement, - private readonly array $parameterMap, - private readonly ExecutionMode $executionMode, - ) { - } - - public function bindValue(int|string $param, mixed $value, ParameterType $type): void - { - if (is_int($param)) { - if (! isset($this->parameterMap[$param])) { - throw UnknownParameterIndex::new($param); - } - - $param = $this->parameterMap[$param]; - } - - if ($type === ParameterType::LARGE_OBJECT) { - if ($value !== null) { - $lob = oci_new_descriptor($this->connection, OCI_D_LOB); - $lob->writeTemporary($value, OCI_TEMP_BLOB); - - $value =& $lob; - } else { - $type = ParameterType::STRING; - } - } - - if ( - ! @oci_bind_by_name( - $this->statement, - $param, - $value, - -1, - $this->convertParameterType($type), - ) - ) { - throw Error::new($this->statement); - } - } - - /** - * Converts DBAL parameter type to oci8 parameter type - */ - private function convertParameterType(ParameterType $type): int - { - return match ($type) { - ParameterType::BINARY => OCI_B_BIN, - ParameterType::LARGE_OBJECT => OCI_B_BLOB, - default => SQLT_CHR, - }; - } - - public function execute(): Result - { - if ($this->executionMode->isAutoCommitEnabled()) { - $mode = OCI_COMMIT_ON_SUCCESS; - } else { - $mode = OCI_NO_AUTO_COMMIT; - } - - $ret = @oci_execute($this->statement, $mode); - if (! $ret) { - throw Error::new($this->statement); - } - - return new Result($this->statement); - } -} -- cgit v1.2.3