@@ -27,27 +27,30 @@ protected function setUp(): void
2727 self ::markTestSkipped ("DBAL doesn't support storing LOBs represented as streams using PDO_OCI " );
2828 }
2929
30- $ table = new Table ('blob_table ' , [
31- Column::editor ()
32- ->setUnquotedName ('id ' )
33- ->setTypeName (Types::INTEGER )
34- ->create (),
35- Column::editor ()
36- ->setUnquotedName ('clobcolumn ' )
37- ->setTypeName (Types::TEXT )
38- ->setNotNull (false )
39- ->create (),
40- Column::editor ()
41- ->setUnquotedName ('blobcolumn ' )
42- ->setTypeName (Types::BLOB )
43- ->setNotNull (false )
44- ->create (),
45- ]);
46- $ table ->addPrimaryKeyConstraint (
47- PrimaryKeyConstraint::editor ()
48- ->setUnquotedColumnNames ('id ' )
49- ->create (),
50- );
30+ $ table = Table::editor ()
31+ ->setUnquotedName ('blob_table ' )
32+ ->setColumns (
33+ Column::editor ()
34+ ->setUnquotedName ('id ' )
35+ ->setTypeName (Types::INTEGER )
36+ ->create (),
37+ Column::editor ()
38+ ->setUnquotedName ('clobcolumn ' )
39+ ->setTypeName (Types::TEXT )
40+ ->setNotNull (false )
41+ ->create (),
42+ Column::editor ()
43+ ->setUnquotedName ('blobcolumn ' )
44+ ->setTypeName (Types::BLOB )
45+ ->setNotNull (false )
46+ ->create (),
47+ )
48+ ->setPrimaryKeyConstraint (
49+ PrimaryKeyConstraint::editor ()
50+ ->setUnquotedColumnNames ('id ' )
51+ ->create (),
52+ )
53+ ->create ();
5154
5255 $ this ->dropAndCreateTable ($ table );
5356 }
@@ -192,27 +195,31 @@ public function testBindParamProcessesStream(): void
192195
193196 public function testBlobBindingDoesNotOverwritePrevious (): void
194197 {
195- $ table = new Table ('blob_table ' , [
196- Column::editor ()
197- ->setUnquotedName ('id ' )
198- ->setTypeName (Types::INTEGER )
199- ->create (),
200- Column::editor ()
201- ->setUnquotedName ('blobcolumn1 ' )
202- ->setTypeName (Types::BLOB )
203- ->setNotNull (false )
204- ->create (),
205- Column::editor ()
206- ->setUnquotedName ('blobcolumn2 ' )
207- ->setTypeName (Types::BLOB )
208- ->setNotNull (false )
209- ->create (),
210- ]);
211- $ table ->addPrimaryKeyConstraint (
212- PrimaryKeyConstraint::editor ()
213- ->setUnquotedColumnNames ('id ' )
214- ->create (),
215- );
198+ $ table = Table::editor ()
199+ ->setUnquotedName ('blob_table ' )
200+ ->setColumns (
201+ Column::editor ()
202+ ->setUnquotedName ('id ' )
203+ ->setTypeName (Types::INTEGER )
204+ ->create (),
205+ Column::editor ()
206+ ->setUnquotedName ('blobcolumn1 ' )
207+ ->setTypeName (Types::BLOB )
208+ ->setNotNull (false )
209+ ->create (),
210+ Column::editor ()
211+ ->setUnquotedName ('blobcolumn2 ' )
212+ ->setTypeName (Types::BLOB )
213+ ->setNotNull (false )
214+ ->create (),
215+ )
216+ ->setPrimaryKeyConstraint (
217+ PrimaryKeyConstraint::editor ()
218+ ->setUnquotedColumnNames ('id ' )
219+ ->create (),
220+ )
221+ ->create ();
222+
216223 $ this ->dropAndCreateTable ($ table );
217224
218225 $ params = ['test1 ' , 'test2 ' ];
0 commit comments