diff --git a/tests/Provider/ColumnTypes.php b/tests/Provider/ColumnTypes.php index 8312298df..2cd4bffc1 100644 --- a/tests/Provider/ColumnTypes.php +++ b/tests/Provider/ColumnTypes.php @@ -198,7 +198,7 @@ public function getColumnTypes(): array 'mysql' => 'datetime(0) NOT NULL', 'pgsql' => 'timestamp(0) NOT NULL', 'sqlite' => 'datetime NOT NULL', - 'oci' => 'TIMESTAMP NOT NULL', + 'oci' => 'TIMESTAMP(0) NOT NULL', 'sqlsrv' => 'datetime NOT NULL', ], ], @@ -208,7 +208,7 @@ public function getColumnTypes(): array 'mysql' => 'datetime(0)', 'pgsql' => 'timestamp(0)', 'sqlite' => 'datetime', - 'oci' => 'TIMESTAMP', + 'oci' => 'TIMESTAMP(0)', 'sqlsrv' => 'datetime', ], ], @@ -218,7 +218,7 @@ public function getColumnTypes(): array 'mysql' => 'decimal(10,0) CHECK (value > 5.6)', 'pgsql' => 'numeric(10,0) CHECK (value > 5.6)', 'sqlite' => 'decimal(10,0) CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'NUMBER(10,0) CHECK (value > 5.6)', 'sqlsrv' => 'decimal(18,0) CHECK (value > 5.6)', ], ], @@ -228,7 +228,7 @@ public function getColumnTypes(): array 'mysql' => 'decimal(10,0) NOT NULL', 'pgsql' => 'numeric(10,0) NOT NULL', 'sqlite' => 'decimal(10,0) NOT NULL', - 'oci' => 'NUMBER NOT NULL', + 'oci' => 'NUMBER(10,0) NOT NULL', 'sqlsrv' => 'decimal(18,0) NOT NULL', ], ], @@ -238,7 +238,7 @@ public function getColumnTypes(): array 'mysql' => 'decimal(12,4) CHECK (value > 5.6)', 'pgsql' => 'numeric(12,4) CHECK (value > 5.6)', 'sqlite' => 'decimal(12,4) CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'NUMBER(12,4) CHECK (value > 5.6)', 'sqlsrv' => 'decimal(12,4) CHECK (value > 5.6)', ], ], @@ -248,7 +248,7 @@ public function getColumnTypes(): array 'mysql' => 'decimal(12,4)', 'pgsql' => 'numeric(12,4)', 'sqlite' => 'decimal(12,4)', - 'oci' => 'NUMBER', + 'oci' => 'NUMBER(12,4)', 'sqlsrv' => 'decimal(12,4)', ], ], @@ -258,7 +258,7 @@ public function getColumnTypes(): array 'mysql' => 'decimal(10,0)', 'pgsql' => 'numeric(10,0)', 'sqlite' => 'decimal(10,0)', - 'oci' => 'NUMBER', + 'oci' => 'NUMBER(10,0)', 'sqlsrv' => 'decimal(18,0)', ], ], @@ -268,7 +268,7 @@ public function getColumnTypes(): array 'mysql' => 'double CHECK (value > 5.6)', 'pgsql' => 'double precision CHECK (value > 5.6)', 'sqlite' => 'double CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'BINARY_DOUBLE CHECK (value > 5.6)', 'sqlsrv' => 'float CHECK (value > 5.6)', ], ], @@ -278,7 +278,7 @@ public function getColumnTypes(): array 'mysql' => 'double NOT NULL', 'pgsql' => 'double precision NOT NULL', 'sqlite' => 'double NOT NULL', - 'oci' => 'NUMBER NOT NULL', + 'oci' => 'BINARY_DOUBLE NOT NULL', 'sqlsrv' => 'float NOT NULL', ], ], @@ -288,7 +288,7 @@ public function getColumnTypes(): array 'mysql' => 'double CHECK (value > 5.6)', 'pgsql' => 'double precision CHECK (value > 5.6)', 'sqlite' => 'double CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'BINARY_DOUBLE CHECK (value > 5.6)', 'sqlsrv' => 'float CHECK (value > 5.6)', ], ], @@ -297,7 +297,7 @@ public function getColumnTypes(): array [ 'mysql' => 'double', 'sqlite' => 'double', - 'oci' => 'NUMBER', + 'oci' => 'BINARY_DOUBLE', 'sqlsrv' => 'float', ], ], @@ -307,7 +307,7 @@ public function getColumnTypes(): array 'mysql' => 'double', 'pgsql' => 'double precision', 'sqlite' => 'double', - 'oci' => 'NUMBER', + 'oci' => 'BINARY_DOUBLE', 'sqlsrv' => 'float', ], ], @@ -317,7 +317,7 @@ public function getColumnTypes(): array 'mysql' => 'float CHECK (value > 5.6)', 'pgsql' => 'double precision CHECK (value > 5.6)', 'sqlite' => 'float CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'BINARY_FLOAT CHECK (value > 5.6)', 'sqlsrv' => 'float CHECK (value > 5.6)', ], ], @@ -327,7 +327,7 @@ public function getColumnTypes(): array 'mysql' => 'float NOT NULL', 'pgsql' => 'double precision NOT NULL', 'sqlite' => 'float NOT NULL', - 'oci' => 'NUMBER NOT NULL', + 'oci' => 'BINARY_FLOAT NOT NULL', 'sqlsrv' => 'float NOT NULL', ], ], @@ -337,7 +337,7 @@ public function getColumnTypes(): array 'mysql' => 'float CHECK (value > 5.6)', 'pgsql' => 'double precision CHECK (value > 5.6)', 'sqlite' => 'float CHECK (value > 5.6)', - 'oci' => 'NUMBER CHECK (value > 5.6)', + 'oci' => 'BINARY_FLOAT CHECK (value > 5.6)', 'sqlsrv' => 'float CHECK (value > 5.6)', ], ], @@ -346,7 +346,7 @@ public function getColumnTypes(): array [ 'mysql' => 'float', 'sqlite' => 'float', - 'oci' => 'NUMBER', + 'oci' => 'BINARY_FLOAT', 'sqlsrv' => 'float', ], ], @@ -356,7 +356,7 @@ public function getColumnTypes(): array 'mysql' => 'float', 'pgsql' => 'double precision', 'sqlite' => 'float', - 'oci' => 'NUMBER', + 'oci' => 'BINARY_FLOAT', 'sqlsrv' => 'float', ], ], @@ -648,7 +648,7 @@ public function getColumnTypes(): array 'mysql' => 'time(0) NOT NULL', 'pgsql' => 'time(0) NOT NULL', 'sqlite' => 'time NOT NULL', - 'oci' => 'TIMESTAMP NOT NULL', + 'oci' => 'INTERVAL DAY(0) TO SECOND(0) NOT NULL', 'sqlsrv' => 'time NOT NULL', ], ], @@ -658,7 +658,7 @@ public function getColumnTypes(): array 'mysql' => 'time(0)', 'pgsql' => 'time(0)', 'sqlite' => 'time', - 'oci' => 'TIMESTAMP', + 'oci' => 'INTERVAL DAY(0) TO SECOND(0)', 'sqlsrv' => 'time', ], ], @@ -668,7 +668,7 @@ public function getColumnTypes(): array 'mysql' => 'timestamp(0) NOT NULL', 'pgsql' => 'timestamp(0) NOT NULL', 'sqlite' => 'timestamp NOT NULL', - 'oci' => 'TIMESTAMP NOT NULL', + 'oci' => 'TIMESTAMP(0) NOT NULL', 'sqlsrv' => 'datetime NOT NULL', ], ], @@ -685,6 +685,7 @@ public function getColumnTypes(): array SchemaInterface::TYPE_TIMESTAMP . '(4)', [ 'pgsql' => 'timestamp(4)', + 'oci' => 'TIMESTAMP(4)', ], ], '$this->timestamp()' => [ @@ -697,7 +698,7 @@ public function getColumnTypes(): array */ 'pgsql' => 'timestamp(0)', 'sqlite' => 'timestamp', - 'oci' => 'TIMESTAMP', + 'oci' => 'TIMESTAMP(0)', 'sqlsrv' => 'datetime', ], ],