From 59210df9bafec059f37d279ce23a1689151abc5f Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Mon, 14 Sep 2020 17:07:10 -0300 Subject: [PATCH] Update crystal-db for logging support --- src/sqlite3/statement.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sqlite3/statement.cr b/src/sqlite3/statement.cr index c5dc619..06289fb 100644 --- a/src/sqlite3/statement.cr +++ b/src/sqlite3/statement.cr @@ -1,7 +1,7 @@ class SQLite3::Statement < DB::Statement - def initialize(connection, sql) - super(connection) - check LibSQLite3.prepare_v2(sqlite3_connection, sql, sql.bytesize + 1, out @stmt, nil) + def initialize(connection, command) + super(connection, command) + check LibSQLite3.prepare_v2(sqlite3_connection, command, command.bytesize + 1, out @stmt, nil) end protected def perform_query(args : Enumerable) : DB::ResultSet