changed: there is one dir called root (has parent_id -1)
(we have an owner, group, privileges etc of the root dir) the root.id of course is not -1 git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@468 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -932,7 +932,7 @@ void Db::GetDirs(DirContainer & dir_table)
|
||||
AssertConnection();
|
||||
|
||||
std::ostringstream query;
|
||||
query << "select * from core.item left join core.content on item.content_id = content.id where type='0';";
|
||||
query << "select * from core.item where type='0';";
|
||||
|
||||
r = AssertQuery( query.str() );
|
||||
AssertResultStatus(r, PGRES_TUPLES_OK);
|
||||
@@ -954,7 +954,6 @@ void Db::GetDirs(DirContainer & dir_table)
|
||||
}
|
||||
|
||||
ClearResult(r);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user