private constant RowCountExceptionTest::DEFAULT_EXCEPTION_MESSAGE in Drupal 10
The default exception message.
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ RowCountExceptionTest.php, line 18
Class
- RowCountExceptionTest
- @coversDefaultClass \Drupal\Core\Database\RowCountException
Namespace
Drupal\Tests\Core\DatabaseCode
private const DEFAULT_EXCEPTION_MESSAGE = "rowCount() is supported for DELETE, INSERT, or UPDATE statements performed with structured query builders only, since they would not be portable across database engines otherwise. If the query builders are not sufficient, use a prepareStatement() with an \$allow_row_count argument set to TRUE, execute() the Statement and get the number of affected rows via rowCount().";