You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues are used to track bugs and feature requests.
Need help or have a general question? Ask on Stack Overflow (tag sqlite.swift).
Build Information
SQLite.swift version : 0.15.3
XCode : 16
Swift Package manager
I'm trying to select a field of type Float but I get an error assigning it to a variable.
The field is defined as: let iAmount = Expression<Float>("Amount");
When I try to populate a variable, I this the error:
Subscript 'subscript(_:)' requires that 'Float' conform to 'Value'
Below is the code:
for ri in try db.prepare(dtRecipeIngredients.order(iName).where(iUUIDRecipe == r[rUUID]))
{
let amount : Float = ri[iAmount]
let newIngredient = Ingredient (
Name: ri[iName]
, Qnty: amount
)
The error occurs at compile time, not run time. Should I be declaring the expression for the field in a different way for a Float?
The text was updated successfully, but these errors were encountered:
Build Information
SQLite.swift version : 0.15.3
XCode : 16
Swift Package manager
I'm trying to select a field of type Float but I get an error assigning it to a variable.
The field is defined as:
let iAmount = Expression<Float>("Amount");
When I try to populate a variable, I this the error:
Subscript 'subscript(_:)' requires that 'Float' conform to 'Value'
Below is the code:
The error occurs at compile time, not run time. Should I be declaring the expression for the field in a different way for a Float?
The text was updated successfully, but these errors were encountered: