aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/dbal.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-05-31 15:27:32 +0200
committerNils Adermann <naderman@naderman.de>2012-05-31 15:27:32 +0200
commitb789758f1bf431accb1226ff34f28e25c7ebe5c6 (patch)
treeff6fd76991bc8e54e3de29ae3245ba783908df6e /phpBB/includes/db/dbal.php
parent0261a9acffd47beb5b40bfa58d987e44b5ebf0c3 (diff)
parent9ab5ad2986a836554bbf137d577c38155540c0a8 (diff)
downloadforums-b789758f1bf431accb1226ff34f28e25c7ebe5c6.tar
forums-b789758f1bf431accb1226ff34f28e25c7ebe5c6.tar.gz
forums-b789758f1bf431accb1226ff34f28e25c7ebe5c6.tar.bz2
forums-b789758f1bf431accb1226ff34f28e25c7ebe5c6.tar.xz
forums-b789758f1bf431accb1226ff34f28e25c7ebe5c6.zip
Merge remote-tracking branch 'github-bantu/ticket/10751' into develop-olympus
By Andreas Fischer via Andreas Fischer * github-bantu/ticket/10751: [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.
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 358df50402..9cc337955b 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -501,6 +501,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