summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/stmt.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-06-07 15:06:43 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-07 15:06:43 +0200
commitcc4f773b0e0f45cdb28727853b9d253234a93b56 (patch)
tree455224a7cb489909906eda5778d0e700867358d4 /vendor/github.com/ncruces/go-sqlite3/stmt.go
parent[feature] Implement filters_changed stream event (#2972) (diff)
downloadgotosocial-cc4f773b0e0f45cdb28727853b9d253234a93b56.tar.xz
[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
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/stmt.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/stmt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/stmt.go b/vendor/github.com/ncruces/go-sqlite3/stmt.go
index 63c2085d0..ac40e3802 100644
--- a/vendor/github.com/ncruces/go-sqlite3/stmt.go
+++ b/vendor/github.com/ncruces/go-sqlite3/stmt.go
@@ -441,12 +441,12 @@ func (s *Stmt) ColumnOriginName(col int) string {
// ColumnBool returns the value of the result column as a bool.
// The leftmost column of the result set has the index 0.
// 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/column_blob.html
func (s *Stmt) ColumnBool(col int) bool {
- return s.ColumnInt64(col) != 0
+ return s.ColumnFloat(col) != 0
}
// ColumnInt returns the value of the result column as an int.