From cc4f773b0e0f45cdb28727853b9d253234a93b56 Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 7 Jun 2024 15:06:43 +0200 Subject: [chore] Update WASM go-sqlite3 to v0.16.1 (#2976) This includes support for journal mode set to WAL on the BSDs. Relates to: #1753, #2962 --- vendor/github.com/ncruces/go-sqlite3/value.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/ncruces/go-sqlite3/value.go') diff --git a/vendor/github.com/ncruces/go-sqlite3/value.go b/vendor/github.com/ncruces/go-sqlite3/value.go index 61d3cbf70..d0edf215b 100644 --- a/vendor/github.com/ncruces/go-sqlite3/value.go +++ b/vendor/github.com/ncruces/go-sqlite3/value.go @@ -68,12 +68,12 @@ func (v Value) NumericType() Datatype { // Bool returns the value as a bool. // SQLite does not have a separate boolean storage class. -// Instead, boolean values are retrieved as integers, +// Instead, boolean values are retrieved as numbers, // with 0 converted to false and any other value to true. // // https://sqlite.org/c3ref/value_blob.html func (v Value) Bool() bool { - return v.Int64() != 0 + return v.Float() != 0 } // Int returns the value as an int. -- cgit v1.2.3