no more float conversion
This commit is contained in:
@@ -1262,10 +1262,9 @@ evaluate_sort_key_condition :: proc(item: Item, skc: ^Sort_Key_Condition) -> boo
|
||||
}
|
||||
return false
|
||||
case .BEGINS_WITH:
|
||||
// BEGINS_WITH on numbers: fall through to string comparison
|
||||
item_str := format_ddb_number(item_num)
|
||||
cond_str := format_ddb_number(cond_num)
|
||||
return strings.has_prefix(item_str, cond_str)
|
||||
// begins_with is not a valid operator for Number sort keys.
|
||||
// DynamoDB rejects this at validation time. Return false.
|
||||
return false
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user