mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pg: fix compilation
This commit is contained in:
@@ -128,7 +128,8 @@ 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 {
|
||||
mut param_vals := &byteptr( malloc( params.len * sizeof(byteptr) ) )
|
||||
b := sizeof(byteptr)
|
||||
mut param_vals := &byteptr(malloc(params.len * 8))
|
||||
for i in 0..params.len {
|
||||
param_vals[i] = params[i].str
|
||||
}
|
||||
|
Reference in New Issue
Block a user