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

sqlite: a minor fix

This commit is contained in:
Charles WANG 2019-12-30 17:49:36 +08:00 committed by Alexander Medvednikov
parent 25beb7b3f4
commit ca62b66665

View File

@ -44,7 +44,6 @@ pub fn (db DB) q_string(query string) string {
stmt := &C.sqlite3_stmt(0)
C.sqlite3_prepare_v2(db.conn, query.str, - 1, &stmt, 0)
C.sqlite3_step(stmt)
f := C.sqlite3_column_text(stmt, 0)
res := tos_clone(C.sqlite3_column_text(stmt, 0))
C.sqlite3_finalize(stmt)
return res