Age | Commit message (Collapse) | Author |
|
Changed database schema so ingredients & steps does not have an id, and
therefore can't return it so instead we just exec the insert statement
without returning anything.
We do have to check that there were affected rows in order to accurately
update the recipe object.
|
|
|
|
Now uses sql.QueryRow rather than sql.Query so it doesnt have to check
row.Next(), just have to check that row was returned (on scan call)
|
|
MakeRecipeFromId was creating a empty recipe because rows.Next() was not
being checked.
|
|
|
|
|