summaryrefslogtreecommitdiffstatshomepage
path: root/includes/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-09-24 22:44:06 +0200
committerDries Buytaert <dries@buytaert.net>2011-09-24 22:44:06 +0200
commit6cc902a48debe9162d0dedba0e6adc129191f7ab (patch)
tree9ad856c79011603555b6c9b93b0d61da9571ebe1 /includes/database
parent1e9cf0be1258be2dcafa15ad746499c98a9b6791 (diff)
downloaddrupal-6cc902a48debe9162d0dedba0e6adc129191f7ab.tar.gz
drupal-6cc902a48debe9162d0dedba0e6adc129191f7ab.zip
- Patch #1054848 by barraponto: fixed typos in code documentation.
Diffstat (limited to 'includes/database')
-rw-r--r--includes/database/database.inc2
-rw-r--r--includes/database/query.inc2
-rw-r--r--includes/database/sqlite/database.inc2
3 files changed, 3 insertions, 3 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc
index 610861429d1..c77bcffbfb0 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -152,7 +152,7 @@
* }
*
* // $txn goes out of scope here. Unless the transaction was rolled back, it
- * // gets automatically commited here.
+ * // gets automatically committed here.
* }
*
* function my_other_function($id) {
diff --git a/includes/database/query.inc b/includes/database/query.inc
index c7363f2381c..c779687679a 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -839,7 +839,7 @@ class DeleteQuery extends Query implements QueryConditionInterface {
* Executes the DELETE query.
*
* @return
- * The return value is dependant on the database connection.
+ * The return value is dependent on the database connection.
*/
public function execute() {
$values = array();
diff --git a/includes/database/sqlite/database.inc b/includes/database/sqlite/database.inc
index 0fc0b5528f3..3e2490b00ca 100644
--- a/includes/database/sqlite/database.inc
+++ b/includes/database/sqlite/database.inc
@@ -119,7 +119,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection {
try {
$count = $this->query('SELECT COUNT(*) FROM ' . $prefix . '.sqlite_master WHERE type = :type AND name NOT LIKE :pattern', array(':type' => 'table', ':pattern' => 'sqlite_%'))->fetchField();
- // We can prune the database file if it doens't have any tables.
+ // We can prune the database file if it doesn't have any tables.
if ($count == 0) {
// Detach the database.
$this->query('DETACH DATABASE :schema', array(':schema' => $prefix));