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

ci: fix tests (most CI jobs do not have pg set up)

This commit is contained in:
Delyan Angelov
2020-06-07 18:08:31 +03:00
parent e029044b13
commit 2b6ba63a55
2 changed files with 9 additions and 5 deletions

View File

@@ -128,7 +128,6 @@ pub fn (db DB) exec_one(query string) ?Row {
// free. This prevents warnings and doesn't seem to affect behavior.
pub fn (db DB) exec_param_many(query string, params []string) []Row {
unsafe {
b := sizeof(byteptr)
mut param_vals := &byteptr(malloc(params.len * 8))
for i in 0..params.len {
param_vals[i] = params[i].str