dzql 0.5.32 → 0.5.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -575,7 +575,7 @@ BEGIN
|
|
|
575
575
|
WHEN 'lte' THEN
|
|
576
576
|
v_where_clause := v_where_clause || format(' AND %I <= %L', v_field, v_value #>> '{}');
|
|
577
577
|
WHEN 'in' THEN
|
|
578
|
-
v_where_clause := v_where_clause || format(' AND %I = ANY(%L
|
|
578
|
+
v_where_clause := v_where_clause || format(' AND %I::TEXT = ANY(%L)', v_field,
|
|
579
579
|
(SELECT array_agg(value #>> '{}') FROM jsonb_array_elements(v_value) AS value));
|
|
580
580
|
WHEN 'ilike' THEN
|
|
581
581
|
v_where_clause := v_where_clause || format(' AND %I ILIKE %L', v_field, v_value #>> '{}');
|
|
@@ -61,7 +61,7 @@ BEGIN
|
|
|
61
61
|
|
|
62
62
|
WHEN 'in' THEN
|
|
63
63
|
IF jsonb_typeof(l_op_value) = 'array' THEN
|
|
64
|
-
l_clauses := l_clauses || format('%I = ANY(%L)',
|
|
64
|
+
l_clauses := l_clauses || format('%I::TEXT = ANY(%L)',
|
|
65
65
|
p_column_name,
|
|
66
66
|
ARRAY(SELECT jsonb_array_elements_text(l_op_value))
|
|
67
67
|
);
|
|
@@ -69,7 +69,7 @@ BEGIN
|
|
|
69
69
|
|
|
70
70
|
WHEN 'not_in' THEN
|
|
71
71
|
IF jsonb_typeof(l_op_value) = 'array' THEN
|
|
72
|
-
l_clauses := l_clauses || format('%I != ALL(%L)',
|
|
72
|
+
l_clauses := l_clauses || format('%I::TEXT != ALL(%L)',
|
|
73
73
|
p_column_name,
|
|
74
74
|
ARRAY(SELECT jsonb_array_elements_text(l_op_value))
|
|
75
75
|
);
|