@mastra/libsql 1.22.3-alpha.2 → 1.22.3-alpha.3

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/dist/index.js CHANGED
@@ -238,13 +238,13 @@ const FILTER_OPERATORS = {
238
238
  sql: `NOT (${key})`,
239
239
  needsValue: false
240
240
  }),
241
- $size: (key, paramIndex) => {
241
+ $size: (key, value) => {
242
242
  const jsonPath = getJsonPath(key);
243
243
  return {
244
244
  sql: `(
245
245
  CASE
246
- WHEN json_type(json_extract(metadata, ${jsonPath})) = 'array' THEN
247
- json_array_length(json_extract(metadata, ${jsonPath})) = $${paramIndex}
246
+ WHEN json_type(json_extract(metadata, ${jsonPath})) = 'array' THEN
247
+ json_array_length(json_extract(metadata, ${jsonPath})) = ?
248
248
  ELSE FALSE
249
249
  END
250
250
  )`,