Skip to content

Commit ba2a359

Browse files
rename args for total method
1 parent 9313424 commit ba2a359

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fhir/search.litcoffee

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ we just strip limit, offset, order and rewrite select clause:
397397
q
398398
399399
get_count = (plv8, honey, query_obj) ->
400-
if !query_obj.total_method || query_obj.total_method is "std"
401-
query_obj.total_method = "std"
400+
if !query_obj.total_method || query_obj.total_method is "exact"
401+
query_obj.total_method = "exact"
402402
403403
utils.exec(plv8, countize_query(honey))[0].count
404-
else if query_obj.total_method is "improved"
404+
else if query_obj.total_method is "estimated"
405405
sql_query= sql(honey)
406406
query = sql_query[0].replace /\$(\d+)/g, (match, number) ->
407407
if typeof sql_query[number] is "string"
@@ -416,7 +416,7 @@ we just strip limit, offset, order and rewrite select clause:
416416
tmp = plv8.execute(query)
417417
tmp[0].count_estimate
418418
else
419-
throw new Error("Invalid value of totalMethod. only 'std', 'improved' and 'no' allowed.")
419+
throw new Error("Invalid value of totalMethod. only 'exact', 'estimated' and 'no' allowed.")
420420
421421
We cache FHIR meta-data index per connection using plv8 object:
422422

0 commit comments

Comments
 (0)