[gentle-devel] infinite loop
Brought to you by:
mnmr
From: <ma...@ga...> - 2005-04-26 09:06:56
|
Hi All, I am using SqlBuilder to construct a query wich should return a list of products which names start with a number: SqlBuilder sb = new SqlBuilder(StatementType.Select, typeof(Product)); for(int i=0; i<10; i++) { string s = string.Format("{0}%", i); sb.AddConstraint(Operator.Like, "PRODUCT_NAME", s ); } SqlStatement stmt = sb.GetStatement(StatementType.Select, typeof(Product), true); return ObjectFactory.GetCollection((typeof(Product)), stmt.Execute() ); Doing it this way, the method: public FieldMap FindProperty( string name ) in File FieldList.cs seems to loop infinitely. |