@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * Checks whether the current SQL Server version has full-text |
130 | 130 | * support installed and full-text is enabled for this database. |
131 | 131 | * |
132 | - * @return boolean |
|
132 | + * @return string|boolean |
|
133 | 133 | */ |
134 | 134 | public function fullTextEnabled() |
135 | 135 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * Checks whether the current SQL Server version has full-text |
144 | 144 | * support installed and full-text is enabled for this database. |
145 | 145 | * |
146 | - * @return boolean |
|
146 | + * @return false|string |
|
147 | 147 | */ |
148 | 148 | protected function updateFullTextEnabled() |
149 | 149 | { |
@@ -528,6 +528,9 @@ discard block |
||
528 | 528 | return parent::query($sql, $errorLevel); |
529 | 529 | } |
530 | 530 | |
531 | + /** |
|
532 | + * @param string $sql |
|
533 | + */ |
|
531 | 534 | public function preparedQuery($sql, $parameters, $errorLevel = E_USER_ERROR) |
532 | 535 | { |
533 | 536 | $this->inspectQuery($sql); |
@@ -97,7 +97,7 @@ |
||
97 | 97 | * Check if a fulltext index exists on a particular table name. |
98 | 98 | * |
99 | 99 | * @param string $tableName |
100 | - * @return boolean TRUE index exists | FALSE index does not exist | NULL no support |
|
100 | + * @return null|boolean TRUE index exists | FALSE index does not exist | NULL no support |
|
101 | 101 | */ |
102 | 102 | public function fulltextIndexExists($tableName) |
103 | 103 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\MSSQL; |
4 | 4 | |
5 | -use SilverStripe\ORM\Connect\DatabaseException; |
|
6 | 5 | use SilverStripe\ORM\Connect\Query; |
7 | 6 | use function sqlsrv_fetch_array; |
8 | 7 | use function sqlsrv_num_rows; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use SilverStripe\ORM\Queries\SQLSelect; |
7 | 7 | use SilverStripe\ORM\Connect\DBQueryBuilder; |
8 | 8 | use SilverStripe\ORM\Queries\SQLConditionalExpression; |
9 | -use SilverStripe\ORM\Queries\SQLUpdate; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * Builds a SQL query string from a SQLExpression object |