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

orm: mysql fixes (#14772)

This commit is contained in:
Louis Schmieder
2022-06-16 19:19:49 +02:00
committed by GitHub
parent fb5a40d1c8
commit 5df3d8ac75
7 changed files with 80 additions and 70 deletions

View File

@ -20,6 +20,7 @@ pub fn (db DB) @select(config orm.SelectConfig, data orm.QueryData, where orm.Qu
mut ret := [][]orm.Primitive{}
if config.is_count {
eprintln(config)
// 2. Get count of returned values & add it to ret array
step := stmt.step()
if step !in [sqlite_row, sqlite_ok, sqlite_done] {