|
From: <sv...@de...> - 2005-05-20 21:45:42
|
Author: marijn
Date: 2005-05-20 17:45:37 -0400 (Fri, 20 May 2005)
New Revision: 1121
Modified:
humano2/trunk/core/db/pgsql/pgsqlComplex.cs
Log:
Fixing bug when displaying a view.
* Fixing bug of what is the default view after creating an instance.
Modified: humano2/trunk/core/db/pgsql/pgsqlComplex.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/core/db/pgsql/pgsqlComplex.cs 2005-05-20 20:56:42 UTC (=
rev 1120)
+++ humano2/trunk/core/db/pgsql/pgsqlComplex.cs 2005-05-20 21:45:37 UTC (=
rev 1121)
@@ -304,7 +304,7 @@
/// <returns>the id of the view that should be shown.</returns>
public override int getDefaultViewId(int classId)
{
- string query =3D "select \"id_entity\" from view where \"where\" is n=
ull and \"idClassView\" =3D " + classId;
+ string query =3D "select min(\"id_entity\") from view where \"idClass=
View\" =3D " + classId;
return Convert.ToInt32( doScalar( query ) );
}
=09
|