aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/dbal.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-05-31 15:28:08 +0200
committerNils Adermann <naderman@naderman.de>2012-05-31 15:28:08 +0200
commit1b73f824303e484b466e3b5db613eb18768530ff (patch)
treebaefd66aef00f22fac1f8e44bb5afc6735fc3388 /phpBB/includes/db/dbal.php
parent7edb52b9be73a5e6e15a4b0bd2d408addcdeb917 (diff)
parentb789758f1bf431accb1226ff34f28e25c7ebe5c6 (diff)
downloadforums-1b73f824303e484b466e3b5db613eb18768530ff.tar
forums-1b73f824303e484b466e3b5db613eb18768530ff.tar.gz
forums-1b73f824303e484b466e3b5db613eb18768530ff.tar.bz2
forums-1b73f824303e484b466e3b5db613eb18768530ff.tar.xz
forums-1b73f824303e484b466e3b5db613eb18768530ff.zip
Merge branch 'develop-olympus' into develop
By Andreas Fischer via Andreas Fischer (1) and Nils Adermann (1) * develop-olympus: [ticket/10751] Use sql_lower_text() in view_log(). log_data is a text column. [ticket/10751] Add sql_lower_text() to database abstraction layer. Conflicts: phpBB/includes/db/dbal.php
Diffstat (limited to 'phpBB/includes/db/dbal.php')
-rw-r--r--phpBB/includes/db/dbal.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index db469ed969..cf54d455f7 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -522,6 +522,18 @@ class dbal
}
/**
+ * Run LOWER() on DB column of type text (i.e. neither varchar nor char).
+ *
+ * @param string $column_name The column name to use
+ *
+ * @return string A SQL statement like "LOWER($column_name)"
+ */
+ function sql_lower_text($column_name)
+ {
+ return "LOWER($column_name)";
+ }
+
+ /**
* Run more than one insert statement.
*
* @param string $table table name to run the statements on