| Versionen | |
|---|---|
| drupal7 | public DatabaseConnection::makeSequenceName($table, $field) |
Create the appropriate sequence name for a given table and serial field.
This information is exposed to all database drivers, although it is only useful on some of them. This method is table prefix-aware.
$table The table name to use for the sequence.
$field The field name to use for the sequence.
A table prefix-parsed string for the sequence name.
includes/
<?php
public function makeSequenceName($table, $field) {
return $this->prefixTables('{' . $table . '}_' . $field . '_seq');
}
?>
Kommentare
Kommentar hinzufügen