Skip to content

Commit

Permalink
Polygon 1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Jun 9, 2024
1 parent d9f99b1 commit 751c8e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions plugins/polygon/build/define.lua
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion plugins/polygon/doc/License-Polygon
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
3 changes: 3 additions & 0 deletions plugins/polygon/doc/changelog.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 1 addition & 11 deletions plugins/polygon/modules/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 751c8e7

Please sign in to comment.