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

checker: handle builtin enum init correctly

This commit is contained in:
Alexander Medvednikov
2021-05-20 03:14:27 +03:00
parent ac469f5eff
commit f09a5135e9
6 changed files with 25 additions and 5 deletions

View File

@ -92,6 +92,7 @@ pub fn (mut db DB) close() ?bool {
// Only for V ORM
fn (db DB) init_stmt(query string) &C.sqlite3_stmt {
// println('init_stmt("$query")')
stmt := &C.sqlite3_stmt(0)
C.sqlite3_prepare_v2(db.conn, &char(query.str), query.len, &stmt, 0)
return stmt