| View previous topic :: View next topic |
| Author |
Message |
LarsR Veteran
Joined: 20 Apr 2009 Posts: 28
|
Posted: Fri Sep 25, 2009 8:08 am Post subject: Bug - Query.CanBuild |
|
|
| As I've mentioned in a previous post we've recently made changes to our database. This resulted in renamed attributes in the data model xml (to keep the naming standard consistent). In turn, this caused previously saved queries in our test database to have invalid attribute id:s (which causes "{unrecognized attribute}" to be displayed instead of the column name). Even with these invalid columns, Query.CanBuild and Query.BuildSQL return true, and the generated sql string contains an empty space where the column name would be. I want to suggest making both methods return false instead when one of the columns is incorrect. |
|
| Back to top |
|
 |
Sergiy Guru
Joined: 07 Nov 2005 Posts: 389
|
Posted: Wed Oct 07, 2009 9:21 am Post subject: |
|
|
Actually CanBuild method just check if there is at least one column or condition defined for your query.
We need another method/function which run through all columns and conditions of a Query objects and return TRUE if all of them are defined correctly.
Added this request into TO-DO as well. _________________ With the best regards, Sergiy Korzh. |
|
| Back to top |
|
 |
|