From 751c8e7b89fadd24e23a3c2818006b7d418cb2db Mon Sep 17 00:00:00 2001 From: shmuz Date: Sun, 9 Jun 2024 22:34:55 +0300 Subject: [PATCH] Polygon 1.8.3 --- plugins/polygon/build/define.lua | 4 ++-- plugins/polygon/doc/License-Polygon | 2 +- plugins/polygon/doc/changelog.txt | 3 +++ plugins/polygon/modules/panel.lua | 12 +----------- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/plugins/polygon/build/define.lua b/plugins/polygon/build/define.lua index faf48c6..dd3034c 100644 --- a/plugins/polygon/build/define.lua +++ b/plugins/polygon/build/define.lua @@ -1,14 +1,14 @@ -- Definitions VER_MAJOR = "1" VER_MINOR = "8" -VER_MICRO = "2" +VER_MICRO = "3" -- Far >= 3.0.4364 required if -DRUN_LUAFAR_INIT is used -- Far >= 3.0.4401 required if more than 10 DB table columns must be supported -- Far >= 3.0.5416: sortings by CtrlF3/F4/etc. work; related to LuaFAR build 691: versions >= 1.7.0 aren't affected MINFARVERSION = "{ 3, 0, 0, 4401 }" -COPYRIGHT = "Shmuel Zeigerman, 2018-2023" +COPYRIGHT = "Shmuel Zeigerman, 2018-2024" -- Derivative values -- VER_STRING = VER_MAJOR.."."..VER_MINOR.."."..VER_MICRO diff --git a/plugins/polygon/doc/License-Polygon b/plugins/polygon/doc/License-Polygon index 5d96f2d..047c65e 100644 --- a/plugins/polygon/doc/License-Polygon +++ b/plugins/polygon/doc/License-Polygon @@ -1,6 +1,6 @@ /************************************************************************** * Polygon, a plugin for Far Manager 3.0 * - * Copyright (C) 2018-2023 by Shmuel Zeigerman * + * Copyright (C) 2018-2024 by Shmuel Zeigerman * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * diff --git a/plugins/polygon/doc/changelog.txt b/plugins/polygon/doc/changelog.txt index f91e3d6..0209f10 100644 --- a/plugins/polygon/doc/changelog.txt +++ b/plugins/polygon/doc/changelog.txt @@ -1,3 +1,6 @@ +2024-06-09, v.1.8.3 + 1. Refactor to not depend on bit64 __tostring metamethod. + 2023-03-10, v.1.8.2 1. Insert rows dialog: don't autoreplace NULLs in primary key columns diff --git a/plugins/polygon/modules/panel.lua b/plugins/polygon/modules/panel.lua index 1ba826e..6f738c2 100644 --- a/plugins/polygon/modules/panel.lua +++ b/plugins/polygon/modules/panel.lua @@ -510,15 +510,6 @@ function mypanel:get_panel_list_db() end -local function rowid_tostring(rowid) - if type(rowid)=="string" then - return rowid - else -- rowid is a number - return tostring(bit64.new(rowid)) - end -end - - function mypanel:get_panel_list_obj() local fullname = Norm(self._schema).."."..Norm(self._objname) @@ -612,8 +603,7 @@ function mypanel:get_panel_list_obj() item.CustomColumnData[i] = exporter.get_text(stmt, i, true) end -- the leftmost column is ROWID (according to the query used) - local rowid = stmt:get_value(0) - rowid = rowid_tostring(rowid) + local rowid = stmt:get_column_text(0) -- IMPORTANT: field 'Owner' is used for holding ROWID item.Owner = rowid -- use ROWID as file name, otherwise FAR cannot properly handle selections on the panel