Fix bug id 1646228 - Error in viewer with postgresql

This commit is contained in:
Carlos Ruiz 2007-01-28 02:01:49 +00:00
parent d6c67b75c1
commit 70f9b56f6f
1 changed files with 1 additions and 1 deletions

View File

@ -902,7 +902,7 @@ public class Viewer extends CFrame
+ "FROM AD_Tab t"
+ " INNER JOIN AD_Window w ON (t.AD_Window_ID=w.AD_Window_ID)"
+ " INNER JOIN AD_Table tt ON (t.AD_Table_ID=tt.AD_Table_ID) "
+ "WHERE AD_Table_ID=? "
+ "WHERE t.AD_Table_ID=? "
+ "ORDER BY w.IsDefault DESC, t.SeqNo, ABS (tt.AD_Window_ID-t.AD_Window_ID)";
int AD_Tab_ID = DB.getSQLValue(null, sql, AD_Table_ID);
//