mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
all: fix remaining []array
warnings
This commit is contained in:
parent
9f4d498ff1
commit
2574dce174
21 changed files with 34 additions and 36 deletions
|
@ -63,10 +63,10 @@ pub fn (db DB) exec(query string) ([]Row,int) {
|
|||
C.sqlite3_prepare_v2(db.conn, query.str, -1, &stmt, 0)
|
||||
nr_cols := C.sqlite3_column_count(stmt)
|
||||
mut res := 0
|
||||
mut rows := []Row
|
||||
mut rows := []Row{}
|
||||
for {
|
||||
res = C.sqlite3_step(stmt)
|
||||
// Result Code SQLITE_ROW; Another row is available
|
||||
// Result Code SQLITE_ROW; Another row is available
|
||||
if res != 100 {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue