Skip to content

Commit e03bbe4

Browse files
committed
minor updates in prep of a release
1 parent 3ee008a commit e03bbe4

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Name: sqlite
22
Version: 0.0.1
3-
Date: 2022-10-6
3+
Date: 2022-10-12
44
Author: John Donoghue <john.donoghue@ieee.org>
55
Maintainer: John Donoghue <john.donoghue@ieee.org>
66
Title: Octave Sqlite Toolkit
77
Description: Basic Octave implementation of sqlite toolkit
88
Categories: Database
9-
Depends: octave (>= 4.0.0)
9+
Depends: octave (>= 6.0.0)
1010
BuildRequires: libsqlite3-dev
1111
SystemRequirements: libsqlite3
1212
License: GPLv3+
13-
Url: https://sourceforge.net/projects/octave-sqlite/
13+
Url: https://github.com/gnu-octave/octave-sqlite/wiki/Octave-SQLITE-Toolkit

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Summary of important user-visible changes for sqlite 0.1.0:
1+
Summary of important user-visible changes for sqlite 0.0.1:
22
-------------------------------------------------------------------
33

44
** Initial release

src/__sqlite__.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Private function\n \
152152
if(res)
153153
return m;
154154
else
155-
return octave_value();
155+
return octave_value();
156156
}
157157

158158
// PKG_ADD: autoload ("__sqlite_commit__", "__sqlite__.oct");
@@ -180,7 +180,7 @@ Private function\n \
180180
octave_value m;
181181
bool res = db->commit();
182182

183-
return octave_value();
183+
return octave_value(res);
184184
}
185185

186186
// PKG_ADD: autoload ("__sqlite_rollback__", "__sqlite__.oct");
@@ -208,7 +208,7 @@ Private function\n \
208208
octave_value m;
209209
bool res = db->rollback();
210210

211-
return octave_value();
211+
return octave_value(res);
212212
}
213213

214214
#if 0

src/octave_sqlite.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ bool octave_sqlite::execute (const std::string &query)
369369

370370
bool octave_sqlite::fetch (const std::string &query, octave_value &retval)
371371
{
372-
char * err;
373372
sqlite3_stmt *stmt;
374373

375374
int rc = sqlite3_prepare_v2(db, query.c_str(), -1, &stmt, NULL);

0 commit comments

Comments
 (0)