summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-24 09:44:33 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-24 09:45:04 +0200
commit7998689bc9eb075813f6ae3ab3025f3932591e95 (patch)
treed5f7193162bb99ef84e1205b121651020fb3544e /lib/private
parent3a8e75a814a8c6b394d28570e15ccd85ad57dced (diff)
downloadnextcloud-server-7998689bc9eb075813f6ae3ab3025f3932591e95.tar.gz
nextcloud-server-7998689bc9eb075813f6ae3ab3025f3932591e95.zip
Added method to DB and fix test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/AppFramework/Db/Db.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Db/Db.php b/lib/private/AppFramework/Db/Db.php
index 5fea09747af..450549ffdbb 100644
--- a/lib/private/AppFramework/Db/Db.php
+++ b/lib/private/AppFramework/Db/Db.php
@@ -31,6 +31,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDb;
use OCP\IDBConnection;
use OCP\PreConditionNotMetException;
+use Doctrine\DBAL\Platforms\MySqlPlatform;
/**
* @deprecated use IDBConnection directly, will be removed in ownCloud 10
@@ -300,4 +301,14 @@ class Db implements IDb {
public function escapeLikeParameter($param) {
return $this->connection->escapeLikeParameter($param);
}
+
+ /**
+ * Check whether or not the current database support 4byte wide unicode
+ *
+ * @return bool
+ * @since 9.2.0
+ */
+ public function supports4ByteText() {
+ return $this->connection->supports4ByteText();
+ }
}