[FarGroup/FarManager] master: Utilize a string optimization added in SQLite 3.52 (3c73d44db)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Mar 9, 2026, 3:15:55 PMMar 9
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/3c73d44db5f7839b6545b5d9ac3e6ad717454800

>---------------------------------------------------------------

commit 3c73d44db5f7839b6545b5d9ac3e6ad717454800
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Mon Mar 9 19:10:40 2026 +0000

Utilize a string optimization added in SQLite 3.52


>---------------------------------------------------------------

3c73d44db5f7839b6545b5d9ac3e6ad717454800
far/changelog | 5 +++++
far/sqlitedb.cpp | 2 +-
far/vbuild.m4 | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/far/changelog b/far/changelog
index 4ecb4bfec..a758740d6 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+drkns 2026-03-09 19:09:32+00:00 - build 6655
+
+1. Utilize a string optimization added in SQLite 3.52.
+
--------------------------------------------------------------------------------
yjh 2026-03-08 11:05:13+03:00 - build 6654

diff --git a/far/sqlitedb.cpp b/far/sqlitedb.cpp
index 3e5917837..3a6912d60 100644
--- a/far/sqlitedb.cpp
+++ b/far/sqlitedb.cpp
@@ -305,7 +305,7 @@ void SQLiteDb::SQLiteStmt::BindImpl(string_view const Value) const
invoke(db(), [&]
{
const auto ValueUtf8 = encoding::utf8::get_bytes(Value);
- return sqlite::sqlite3_bind_text(m_Stmt.get(), ++m_Param, NullToEmpty(ValueUtf8.data()), static_cast<int>(ValueUtf8.size()), sqlite::transient_destructor) == SQLITE_OK;
+ return sqlite::sqlite3_bind_text64(m_Stmt.get(), ++m_Param, NullToEmpty(ValueUtf8.data()), static_cast<int>(ValueUtf8.size()), sqlite::transient_destructor, SQLITE_UTF8_ZT) == SQLITE_OK;
},
sql());
}
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 3a0540a56..cbd5c4970 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6654
+6655


Reply all
Reply to author
Forward
0 new messages