From 2ada7b730e82405f188685ef6f9deeabb936a4c3 Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Wed, 27 Jan 2021 13:52:27 +0100 Subject: [PATCH] sqlite: create_table(): rename rows param to columns (#8361) --- vlib/sqlite/sqlite.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/sqlite/sqlite.v b/vlib/sqlite/sqlite.v index 5248bbfdc2..f7a6139a22 100644 --- a/vlib/sqlite/sqlite.v +++ b/vlib/sqlite/sqlite.v @@ -179,6 +179,6 @@ pub fn (db DB) exec_param(query string, param string) []Row { pub fn (db DB) insert(x T) { } -pub fn (db DB) create_table(table_name string, rows []string) { - db.exec('create table $table_name (' + rows.join(',\n') + ')') +pub fn (db DB) create_table(table_name string, columns []string) { + db.exec('create table $table_name (' + columns.join(',\n') + ')') }