Korzh.com developer tools forums :: View topic - Bug - Query.CanBuild
Korzh.com
home : Community forums  FAQFAQ   SearchSearch  |  RegisterRegister  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Bug - Query.CanBuild

 
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery WinForms
View previous topic :: View next topic  
Author Message
LarsR
Veteran


Joined: 20 Apr 2009
Posts: 28

PostPosted: Fri Sep 25, 2009 8:08 am    Post subject: Bug - Query.CanBuild Reply with quote

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
View user's profile Send private message
Sergiy
Guru


Joined: 07 Nov 2005
Posts: 389

PostPosted: Wed Oct 07, 2009 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery WinForms All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group