diff options
Diffstat (limited to 'includes/database')
-rw-r--r-- | includes/database/mysql/database.inc | 2 | ||||
-rw-r--r-- | includes/database/mysql/schema.inc | 4 | ||||
-rw-r--r-- | includes/database/pgsql/database.inc | 2 | ||||
-rw-r--r-- | includes/database/pgsql/schema.inc | 6 | ||||
-rw-r--r-- | includes/database/schema.inc | 10 |
5 files changed, 12 insertions, 12 deletions
diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc index 281bcfa09..afea7ebda 100644 --- a/includes/database/mysql/database.inc +++ b/includes/database/mysql/database.inc @@ -16,7 +16,7 @@ class DatabaseConnection_mysql extends DatabaseConnection { public function __construct(array $connection_options = array()) { // This driver defaults to non transaction support. $this->transactionSupport = !empty($connection_option['transactions']); - + // MySQL never supports transactional DDL. $this->transactionalDDLSupport = FALSE; diff --git a/includes/database/mysql/schema.inc b/includes/database/mysql/schema.inc index 3a525a1f3..5b0aadee7 100644 --- a/includes/database/mysql/schema.inc +++ b/includes/database/mysql/schema.inc @@ -15,11 +15,11 @@ class DatabaseSchema_mysql extends DatabaseSchema { /** - * Build a condition to match a table name against a standard information_schema. + * Build a condition to match a table name against a standard information_schema. * * MySQL uses databases like schemas rather than catalogs so when we build * a condition to query the information_schema.tables, we set the default - * database as the schema unless specified otherwise, and exclude table_catalog + * database as the schema unless specified otherwise, and exclude table_catalog * from the condition criteria. */ protected function buildTableNameCondition($table_name, $operator = '=') { diff --git a/includes/database/pgsql/database.inc b/includes/database/pgsql/database.inc index 6e39bb232..c9dd63a06 100644 --- a/includes/database/pgsql/database.inc +++ b/includes/database/pgsql/database.inc @@ -16,7 +16,7 @@ class DatabaseConnection_pgsql extends DatabaseConnection { public function __construct(array $connection_options = array()) { // This driver defaults to transaction support, except if explicitly passed FALSE. $this->transactionSupport = !isset($connection_options['transactions']) || ($connection_options['transactions'] !== FALSE); - + // Transactional DDL is always available in PostgreSQL, // but we'll only enable it if standard transactions are. $this->transactionalDDLSupport = $this->transactionSupport; diff --git a/includes/database/pgsql/schema.inc b/includes/database/pgsql/schema.inc index 00f4b9fef..f467f0af1 100644 --- a/includes/database/pgsql/schema.inc +++ b/includes/database/pgsql/schema.inc @@ -115,9 +115,9 @@ class DatabaseSchema_pgsql extends DatabaseSchema { if (!empty($field['unsigned'])) { // Unsigned datatypes are not supported in PostgreSQL 8.3. In MySQL, // they are used to ensure a positive number is inserted and it also - // doubles the maximum integer size that can be stored in a field. - // The PostgreSQL schema in Drupal creates a check constraint - // to ensure that a value inserted is >= 0. To provide the extra + // doubles the maximum integer size that can be stored in a field. + // The PostgreSQL schema in Drupal creates a check constraint + // to ensure that a value inserted is >= 0. To provide the extra // integer capacity, here, we bump up the column field size. if (!isset($map)) { $map = $this->getFieldTypeMap(); diff --git a/includes/database/schema.inc b/includes/database/schema.inc index 5b4304dce..70b902b0e 100644 --- a/includes/database/schema.inc +++ b/includes/database/schema.inc @@ -129,7 +129,7 @@ abstract class DatabaseSchema { * * The information_schema is a SQL standard that provides information about the * database server and the databases, schemas, tables, columns and users within - * it. This makes information_schema a useful tool to use across the drupal + * it. This makes information_schema a useful tool to use across the drupal * database drivers and is used by a few different functions. The function below * describes the conditions to be meet when querying information_schema.tables * for drupal tables or information associated with drupal tables. Even though @@ -166,7 +166,7 @@ abstract class DatabaseSchema { /** * Check if a table exists. - * + * * @param $table * The name of the table in drupal (no prefixing). * @return @@ -176,7 +176,7 @@ abstract class DatabaseSchema { $condition = $this->buildTableNameCondition($this->connection->prefixTables('{' . $table . '}')); $condition->compile($this->connection); // Normally, we would heartily discourage the use of string - // concatination for conditionals like this however, we + // concatination for conditionals like this however, we // couldn't use db_select() here because it would prefix // information_schema.tables and the query would fail. return db_query("SELECT table_name FROM information_schema.tables WHERE " . (string) $condition, $condition->arguments())->fetchField(); @@ -195,7 +195,7 @@ abstract class DatabaseSchema { $condition = $this->buildTableNameCondition($table_expression, 'LIKE'); $condition->compile($this->connection); // Normally, we would heartily discourage the use of string - // concatination for conditionals like this however, we + // concatination for conditionals like this however, we // couldn't use db_select() here because it would prefix // information_schema.tables and the query would fail. return db_query("SELECT table_name FROM information_schema.tables WHERE " . (string) $condition, $condition->arguments())->fetchAllKeyed(0, 0); @@ -209,7 +209,7 @@ abstract class DatabaseSchema { $condition->condition('column_name', $column); $condition->compile($this->connection); // Normally, we would heartily discourage the use of string - // concatination for conditionals like this however, we + // concatination for conditionals like this however, we // couldn't use db_select() here because it would prefix // information_schema.tables and the query would fail. return db_query("SELECT column_name FROM information_schema.columns WHERE " . (string) $condition, $condition->arguments())->fetchAllKeyed(0, 0); |