|
4 | 4 |
|
5 | 5 | namespace Yiisoft\Db\Oracle;
|
6 | 6 |
|
| 7 | +use Yiisoft\Db\Connection\ServerInfoInterface; |
7 | 8 | use Yiisoft\Db\Constant\ColumnType;
|
8 | 9 | use Yiisoft\Db\Constant\PseudoType;
|
9 | 10 | use Yiisoft\Db\Oracle\Column\ColumnDefinitionBuilder;
|
@@ -47,14 +48,17 @@ final class QueryBuilder extends AbstractQueryBuilder
|
47 | 48 | PseudoType::UUID_PK => 'RAW(16) DEFAULT SYS_GUID() PRIMARY KEY',
|
48 | 49 | ];
|
49 | 50 |
|
50 |
| - public function __construct(QuoterInterface $quoter, SchemaInterface $schema) |
| 51 | + public function __construct(QuoterInterface $quoter, SchemaInterface $schema, ServerInfoInterface $serverInfo) |
51 | 52 | {
|
52 |
| - $ddlBuilder = new DDLQueryBuilder($this, $quoter, $schema); |
53 |
| - $dmlBuilder = new DMLQueryBuilder($this, $quoter, $schema); |
54 |
| - $dqlBuilder = new DQLQueryBuilder($this, $quoter); |
55 |
| - $columnDefinitionBuilder = new ColumnDefinitionBuilder($this); |
56 |
| - |
57 |
| - parent::__construct($quoter, $schema, $ddlBuilder, $dmlBuilder, $dqlBuilder, $columnDefinitionBuilder); |
| 53 | + parent::__construct( |
| 54 | + $quoter, |
| 55 | + $schema, |
| 56 | + $serverInfo, |
| 57 | + new DDLQueryBuilder($this, $quoter, $schema), |
| 58 | + new DMLQueryBuilder($this, $quoter, $schema), |
| 59 | + new DQLQueryBuilder($this, $quoter), |
| 60 | + new ColumnDefinitionBuilder($this), |
| 61 | + ); |
58 | 62 | }
|
59 | 63 |
|
60 | 64 | protected function prepareBinary(string $binary): string
|
|
0 commit comments