aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mssql.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/mssql.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/mssql.php')
-rw-r--r--phpBB/includes/db/mssql.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php
index fd11dbad3c..abeabc389f 100644
--- a/phpBB/includes/db/mssql.php
+++ b/phpBB/includes/db/mssql.php
@@ -325,6 +325,14 @@ class dbal_mssql extends dbal
}
/**
+ * {@inheritDoc}
+ */
+ function sql_lower_text($column_name)
+ {
+ return "LOWER(SUBSTRING($column_name, 1, DATALENGTH($column_name)))";
+ }
+
+ /**
* Build LIKE expression
* @access private
*/