mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix createNamedParameter in LDAP migrations
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
e20d5fa7fc
commit
1e5a879d2e
2 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep {
|
|||
$qb = $this->dbc->getQueryBuilder();
|
||||
$qb->select('owncloud_name', 'directory_uuid')
|
||||
->from($table)
|
||||
->where($qb->expr()->gt($qb->func()->octetLength('owncloud_name'), '64', IQueryBuilder::PARAM_INT));
|
||||
->where($qb->expr()->gt($qb->func()->octetLength('owncloud_name'), $qb->createNamedParameter('64'), IQueryBuilder::PARAM_INT));
|
||||
return $qb;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class Version1141Date20220323143801 extends SimpleMigrationStep {
|
|||
$qb = $this->dbc->getQueryBuilder();
|
||||
$qb->select('ldap_dn')
|
||||
->from($tableName)
|
||||
->where($qb->expr()->gt($qb->func()->octetLength('ldap_dn'), '4000', IQueryBuilder::PARAM_INT));
|
||||
->where($qb->expr()->gt($qb->func()->octetLength('ldap_dn'), $qb->createNamedParameter('4000'), IQueryBuilder::PARAM_INT));
|
||||
|
||||
$dnsTooLong = [];
|
||||
$result = $qb->executeQuery();
|
||||
|
|
|
|||
Loading…
Reference in a new issue