[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Query parser

Status
Not open for further replies.
L

Lieven De Foor

Guest
We've walked this path before but are stepping away and are now taking another approach. Instead of parsing a query string we build a query object, which is basically a tree of buffers (joins) with conditions, fields phrases, use-index phrases etc. This object can way more precise be handled (e.g. adding/changing a condition at a specific place in the tree) than strings. Only when we actually want to execute the query we call ToString() method or use a QueryStringBuilder and pass the resulting string to the QUERY-PREPARE() method of a query handle. In no way will we parse or alter that string again; all manipulations go through the object.

Continue reading...
 
Status
Not open for further replies.
Top