Skip to content

Commit

Permalink
Sync changes from dev for query string
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinGrau-PSC committed Oct 13, 2020
1 parent 83cb59d commit d95b2b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified dist/oe12/Spark.pl
Binary file not shown.
5 changes: 3 additions & 2 deletions src/Spark/Core/Service/SparkEntity.cls
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,9 @@ class Spark.Core.Service.SparkEntity inherits OpenEdge.BusinessLogic.BusinessEnt

/* Use the query builder to convert the request object into a valid "where" phrases. */
assign oQueryBuilder = new QueryBuilder().
&if integer(entry(1, proversion, ".")) eq 11 or (integer(entry(1, proversion, ".")) ge 12 and integer(entry(2, proversion, ".")) lt 4) &then

/* Needs to be called once prior to filling the where-string on each data source. */
assign cQueryString = oQueryBuilder:BuildQueryString(poRequest, ProDataSet).
&endif

/* Prepare to fill Dataset via where phrase from the table request. */
extent(hDBBuffer) = extent(ProDataSource).
Expand All @@ -485,6 +484,8 @@ class Spark.Core.Service.SparkEntity inherits OpenEdge.BusinessLogic.BusinessEnt
ProDataSource[ix]:fill-where-string = poRequest:TableRequests[ix]:QueryString.
else if cQueryString begins "each" and cQueryString matches "*where*" then
ProDataSource[ix]:fill-where-string = substring(cQueryString, index(cQueryString, "where")).
else
ProDataSource[ix]:fill-where-string = cQueryString.
&else
/**
* Newer method, which more intelligently builds a query string for the given table request and buffer.
Expand Down
2 changes: 1 addition & 1 deletion src/Spark/version.i
Original file line number Diff line number Diff line change
@@ -1 +1 @@
&GLOBAL-DEFINE SPARK_VERSION 5.1.0-2020.10.12.064120 (12.2.0)
&GLOBAL-DEFINE SPARK_VERSION 5.1.0-2020.10.12.085259 (12.2.0)

0 comments on commit d95b2b6

Please sign in to comment.