From e03bbe4d5307eac1689d89693ab599cbb8c78af0 Mon Sep 17 00:00:00 2001 From: JohnD Date: Wed, 12 Oct 2022 08:01:20 -0400 Subject: [PATCH] minor updates in prep of a release --- DESCRIPTION | 6 +++--- NEWS | 2 +- src/__sqlite__.cc | 6 +++--- src/octave_sqlite.cc | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index aa16512..cc47637 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,13 +1,13 @@ Name: sqlite Version: 0.0.1 -Date: 2022-10-6 +Date: 2022-10-12 Author: John Donoghue Maintainer: John Donoghue Title: Octave Sqlite Toolkit Description: Basic Octave implementation of sqlite toolkit Categories: Database -Depends: octave (>= 4.0.0) +Depends: octave (>= 6.0.0) BuildRequires: libsqlite3-dev SystemRequirements: libsqlite3 License: GPLv3+ -Url: https://sourceforge.net/projects/octave-sqlite/ +Url: https://github.com/gnu-octave/octave-sqlite/wiki/Octave-SQLITE-Toolkit diff --git a/NEWS b/NEWS index 6311ecb..940ce8e 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -Summary of important user-visible changes for sqlite 0.1.0: +Summary of important user-visible changes for sqlite 0.0.1: ------------------------------------------------------------------- ** Initial release diff --git a/src/__sqlite__.cc b/src/__sqlite__.cc index d58ccc4..db6c115 100644 --- a/src/__sqlite__.cc +++ b/src/__sqlite__.cc @@ -152,7 +152,7 @@ Private function\n \ if(res) return m; else - return octave_value(); + return octave_value(); } // PKG_ADD: autoload ("__sqlite_commit__", "__sqlite__.oct"); @@ -180,7 +180,7 @@ Private function\n \ octave_value m; bool res = db->commit(); - return octave_value(); + return octave_value(res); } // PKG_ADD: autoload ("__sqlite_rollback__", "__sqlite__.oct"); @@ -208,7 +208,7 @@ Private function\n \ octave_value m; bool res = db->rollback(); - return octave_value(); + return octave_value(res); } #if 0 diff --git a/src/octave_sqlite.cc b/src/octave_sqlite.cc index f0ef5ff..872c65b 100644 --- a/src/octave_sqlite.cc +++ b/src/octave_sqlite.cc @@ -369,7 +369,6 @@ bool octave_sqlite::execute (const std::string &query) bool octave_sqlite::fetch (const std::string &query, octave_value &retval) { - char * err; sqlite3_stmt *stmt; int rc = sqlite3_prepare_v2(db, query.c_str(), -1, &stmt, NULL);