protected function DatabaseTransactionTestCase::executeDDLStatement
Execute a DDL statement.
2 calls to DatabaseTransactionTestCase::executeDDLStatement()
- DatabaseTransactionTestCase::testTransactionWithDdlStatement in drupal-7.x/
modules/ simpletest/ tests/ database_test.test - Test the compatibility of transactions with DDL statements.
- DatabaseTransactionTestCase::testTransactionWithDdlStatement in drupal-7.x/
modules/ simpletest/ tests/ database_test.test - Test the compatibility of transactions with DDL statements.
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ database_test.test, line 3629
Class
- DatabaseTransactionTestCase
- Test transaction support, particularly nesting.
Código
protected function executeDDLStatement() {
static $count = 0;
$table = array(
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array('id'),
);
db_create_table('database_test_' . ++$count, $table);
}