1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: fix select .. limit 1 . This case now returns an ?Row.

This commit is contained in:
Delyan Angelov
2019-08-20 15:34:34 +03:00
committed by Alexander Medvednikov
parent 151686501d
commit 49899c649c
3 changed files with 63 additions and 37 deletions

View File

@ -48,7 +48,7 @@ pub fn (nn int) str() string {
return '0'
}
max := 16
mut buf := malloc(max)
mut buf := calloc(max)
mut len := 0
mut is_neg := false
if n < 0 {