diff options
author | Nils Adermann <naderman@naderman.de> | 2012-05-31 15:28:08 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2012-05-31 15:28:08 +0200 |
commit | 1b73f824303e484b466e3b5db613eb18768530ff (patch) | |
tree | baefd66aef00f22fac1f8e44bb5afc6735fc3388 /phpBB/includes/db/mssql.php | |
parent | 7edb52b9be73a5e6e15a4b0bd2d408addcdeb917 (diff) | |
parent | b789758f1bf431accb1226ff34f28e25c7ebe5c6 (diff) | |
download | forums-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.php | 8 |
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 */ |