|
10 | 10 | use Keboola\TableBackendUtils\Auth\Grant\Synapse\Permission; |
11 | 11 | use Keboola\TableBackendUtils\Auth\Grant\Synapse\RevokeOptions; |
12 | 12 | use Keboola\TableBackendUtils\Auth\SynapseGrantQueryBuilder; |
| 13 | +use Keboola\TableBackendUtils\Escaping\SynapseQuote; |
13 | 14 |
|
14 | 15 | class SynapseGrantQueryBuilderTest extends BaseAuthTestCase |
15 | 16 | { |
@@ -80,20 +81,20 @@ protected function setUp(): void |
80 | 81 |
|
81 | 82 | $this->connection->executeStatement(sprintf( |
82 | 83 | 'CREATE ROLE %s', |
83 | | - $this->platform->quoteSingleIdentifier($this->currentLogin . '_ROLE') |
| 84 | + SynapseQuote::quoteSingleIdentifier($this->currentLogin . '_ROLE') |
84 | 85 | )); |
85 | 86 |
|
86 | 87 | assert($this->currentLogin !== null); |
87 | 88 | $this->connection->executeStatement(sprintf( |
88 | 89 | 'CREATE SCHEMA %s AUTHORIZATION %s', |
89 | | - $this->platform->quoteSingleIdentifier(self::TEST_SCHEMA), |
90 | | - $this->platform->quoteSingleIdentifier($this->currentLogin) |
| 90 | + SynapseQuote::quoteSingleIdentifier(self::TEST_SCHEMA), |
| 91 | + SynapseQuote::quoteSingleIdentifier($this->currentLogin) |
91 | 92 | )); |
92 | 93 |
|
93 | 94 | $this->connection->executeStatement(sprintf( |
94 | 95 | 'CREATE TABLE %s.%s ([col1] nvarchar(4000) NOT NULL DEFAULT \'\')', |
95 | | - $this->platform->quoteSingleIdentifier(self::TEST_SCHEMA), |
96 | | - $this->platform->quoteSingleIdentifier(self::TEST_TABLE) |
| 96 | + SynapseQuote::quoteSingleIdentifier(self::TEST_SCHEMA), |
| 97 | + SynapseQuote::quoteSingleIdentifier(self::TEST_TABLE) |
97 | 98 | )); |
98 | 99 | } |
99 | 100 |
|
|
0 commit comments