mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: enforce that queries always return a Result, a query-resulting array can be used as a V array in place. (#17871)
This commit is contained in:
@ -44,7 +44,7 @@ pub fn (mut app App) new_article() vweb.Result {
|
||||
println(article)
|
||||
sql app.db {
|
||||
insert article into Article
|
||||
}
|
||||
} or {}
|
||||
|
||||
return app.redirect('/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user