@@ -684,7 +684,7 @@ class QueryBuilderTest extends DbalTestCase
...
@@ -684,7 +684,7 @@ class QueryBuilderTest extends DbalTestCase
->where('nt.lang = :lang AND n.deleted != 1');
->where('nt.lang = :lang AND n.deleted != 1');
$this->expectException(QueryException::class);
$this->expectException(QueryException::class);
$this->expectExceptionMessage("The given alias 'invalid' is not part of any FROM or JOIN clause table. The currently registered aliases are: news, nv.");
$this->expectExceptionMessage('The given alias "invalid" is not part of any FROM or JOIN clause table. The currently registered aliases are: news, nv.');
self::assertEquals('',$qb->getSQL());
self::assertEquals('',$qb->getSQL());
}
}
...
@@ -937,7 +937,7 @@ class QueryBuilderTest extends DbalTestCase
...
@@ -937,7 +937,7 @@ class QueryBuilderTest extends DbalTestCase
->join('a','table_b','a','a.fk_b = a.id');
->join('a','table_b','a','a.fk_b = a.id');
$this->expectException(QueryException::class);
$this->expectException(QueryException::class);
$this->expectExceptionMessage("The given alias 'a' is not unique in FROM and JOIN clause table. The currently registered aliases are: a.");
$this->expectExceptionMessage('The given alias "a" is not unique in FROM and JOIN clause table. The currently registered aliases are: a.');
@@ -70,7 +70,7 @@ class SQLParserUtilsTest extends DbalTestCase
...
@@ -70,7 +70,7 @@ class SQLParserUtilsTest extends DbalTestCase
['SELECT table.field1, ARRAY[:foo]::integer[] FROM schema.table table WHERE table.f1 = :bar AND ARRAY[\'3\']::integer[]',false,[27=>'foo',85=>'bar']],
['SELECT table.field1, ARRAY[:foo]::integer[] FROM schema.table table WHERE table.f1 = :bar AND ARRAY[\'3\']::integer[]',false,[27=>'foo',85=>'bar']],
[
[
<<<'SQLDATA'
<<<'SQLDATA'
SELECT * FROM foo WHERE
SELECT * FROM foo WHERE
bar = ':not_a_param1 ''":not_a_param2"'''
bar = ':not_a_param1 ''":not_a_param2"'''
OR bar=:a_param1
OR bar=:a_param1
OR bar=:a_param2||':not_a_param3'
OR bar=:a_param2||':not_a_param3'
...
@@ -81,9 +81,9 @@ SQLDATA
...
@@ -81,9 +81,9 @@ SQLDATA
,
,
false,
false,
[
[
74=>'a_param1',
73=>'a_param1',
91=>'a_param2',
90=>'a_param2',
190=>'a_param3',
189=>'a_param3',
],
],
],
],
["SELECT data.age AS age, data.id AS id, data.name AS name, data.id AS id FROM test_data data WHERE (data.description LIKE :condition_0 ESCAPE '\\\\') AND (data.description LIKE :condition_1 ESCAPE '\\\\') ORDER BY id ASC",false,[121=>'condition_0',174=>'condition_1']],
["SELECT data.age AS age, data.id AS id, data.name AS name, data.id AS id FROM test_data data WHERE (data.description LIKE :condition_0 ESCAPE '\\\\') AND (data.description LIKE :condition_1 ESCAPE '\\\\') ORDER BY id ASC",false,[121=>'condition_0',174=>'condition_1']],
$this->expectExceptionMessage("Could not convert database value to 'array' as an error was triggered by the unserialization: 'unserialize(): Error at offset 0 of 7 bytes'");
$this->expectExceptionMessage('Could not convert database value to "array" as an error was triggered by the unserialization: unserialize(): Error at offset 0 of 7 bytes');
$this->expectExceptionMessage("Could not convert database value to 'object' as an error was triggered by the unserialization: 'unserialize(): Error at offset 0 of 7 bytes'");
$this->expectExceptionMessage('Could not convert database value to "object" as an error was triggered by the unserialization: unserialize(): Error at offset 0 of 7 bytes');