mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
* Filemanager/PostgreSQL: cant open file in Collabora because of SQL error
Syntax error: 7 ERROR: syntax error at or near "=“, PostgreSQL needs true/false not 1/0
This commit is contained in:
parent
9439e4aa0c
commit
c3c385e1f4
@ -1565,12 +1565,12 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
|
|||||||
{
|
{
|
||||||
$vfs = new self();
|
$vfs = new self();
|
||||||
$stat = $vfs->url_stat($path,0);
|
$stat = $vfs->url_stat($path,0);
|
||||||
$fs_id = (int)$stat['ino'];
|
$fs_id = $stat['ino'];
|
||||||
|
|
||||||
$query = 'SELECT MIN(B.fs_id)
|
$query = 'SELECT MIN(B.fs_id)
|
||||||
FROM '.self::TABLE.' as A
|
FROM '.self::TABLE.' as A
|
||||||
JOIN '.self::TABLE.' AS B ON
|
JOIN '.self::TABLE.' AS B ON A.fs_name = B.fs_name AND A.fs_dir = B.fs_dir AND A.fs_active = '.
|
||||||
A.fs_name = B.fs_name AND A.fs_dir = B.fs_dir AND A.fs_active = 1 && B.fs_active = 0
|
self::_pdo_boolean(true).' && B.fs_active = '.self::_pdo_boolean(false).'
|
||||||
WHERE A.fs_id=?
|
WHERE A.fs_id=?
|
||||||
GROUP BY A.fs_id';
|
GROUP BY A.fs_id';
|
||||||
if (self::LOG_LEVEL > 2)
|
if (self::LOG_LEVEL > 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user