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
Basically this code errors at compile-time, and I don't know why:
let categoryName ="Cars"let s = query:
selectproduct(name, img, price)
joinprod_cat(prod, cat) on product.id == prod_cat.prod
joincategory(name) on category.id == prod_cat.cat
where category.name ==?categoryName # cannot infer the type of the placeholder
This is the sqlite model:
createtableproduct(
id integerprimary key,
name varcharnot null,
img varcharnot null,
price integernot null,
views integernot null default 0,
created timestampnot null default (DATETIME('now')),
modified timestampnot null default (DATETIME('now')));
createtablecategory(
id integerprimary key,
name varcharnot null,
img varcharnot null);
createtableprod_cat(
prod integernot nullreferences product(id),
cat integernot nullreferences category(id));
The text was updated successfully, but these errors were encountered:
Basically this code errors at compile-time, and I don't know why:
This is the sqlite model:
The text was updated successfully, but these errors were encountered: