mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-12 11:48:06 +00:00
Fix create recipe SQL bug
This commit is contained in:
@@ -148,7 +148,7 @@ SqlTiddlerStore.prototype.createRecipe = function(recipename,bagnames) {
|
|||||||
SELECT r.recipe_id, b.bag_id, j.key as position
|
SELECT r.recipe_id, b.bag_id, j.key as position
|
||||||
FROM recipes r
|
FROM recipes r
|
||||||
JOIN bags b
|
JOIN bags b
|
||||||
LEFT JOIN json_each($bag_names) AS j ON j.value = b.bag_name
|
INNER JOIN json_each($bag_names) AS j ON j.value = b.bag_name
|
||||||
WHERE r.recipe_name = $recipe_name
|
WHERE r.recipe_name = $recipe_name
|
||||||
`,{
|
`,{
|
||||||
recipe_name: recipename,
|
recipe_name: recipename,
|
||||||
|
|||||||
Reference in New Issue
Block a user